Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-camogm
Commits
7c1c5571
Commit
7c1c5571
authored
Sep 23, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mount/umount 2
parent
b9c2be88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
camogmgui.js
src/camogmgui/camogmgui.js
+9
-5
No files found.
src/camogmgui/camogmgui.js
View file @
7c1c5571
...
...
@@ -29,8 +29,8 @@ function reload() {
makeRequest
(
'camogm_interface.php'
,
'?cmd=run_camogm'
);
setTimeout
(
'makeRequest("camogm_interface.php", "?cmd=setmov")'
,
500
);
// set MOV as default container format
}
function
mount_hdd
()
{
makeRequest
(
'camogm_interface.php'
,
'?cmd=mount'
);
function
mount_hdd
(
callback
)
{
makeRequest
(
'camogm_interface.php'
,
'?cmd=mount'
,
callback
);
document
.
getElementById
(
'directory'
).
value
=
"/var/hdd/"
;
document
.
getElementById
(
'mount_hdd_button'
).
style
.
display
=
"none"
;
}
...
...
@@ -40,7 +40,7 @@ function process_mount_hdd(xmldoc) {
if
(
response
==
"done"
)
{
//setTimeout('is_hdd_mounted()', 500);
//is_mounted(,"scan_devices(
)");
scan_devices
(
"is_mounted(selected_device
)"
);
console
.
log
(
"mounted"
);
}
}
...
...
@@ -54,7 +54,7 @@ function mount_custom_partition(partition) {
function
unmount_custom_partition
(
mountpoint
)
{
if
(
mountpoint
!=
""
)
{
//calling back scan_devices()
makeRequest
(
'camogm_interface.php'
,
'?cmd=umount&mountpoint='
+
mountpoint
,
"scan_devices()"
);
makeRequest
(
'camogm_interface.php'
,
'?cmd=umount&mountpoint='
+
mountpoint
,
"scan_devices(
list_files(
\"\"
)
)"
);
}
}
...
...
@@ -213,6 +213,7 @@ function list_files(dir) {
function
process_list_file
(
xmldoc
)
{
var
can_continue
=
true
;
if
(
xmldoc
.
getElementsByTagName
(
'list_files'
).
length
>
0
)
{
if
(
xmldoc
.
getElementsByTagName
(
'list_files'
)[
0
].
firstChild
!=
null
){
if
(
xmldoc
.
getElementsByTagName
(
'list_files'
)[
0
].
firstChild
.
data
!=
null
)
{
if
(
xmldoc
.
getElementsByTagName
(
'list_files'
)[
0
].
firstChild
.
data
==
"no webshare found"
)
{
console
.
log
(
"webshare not found"
);
...
...
@@ -224,6 +225,7 @@ function process_list_file(xmldoc) {
create_webshare
();
}
}
}
}
if
(
can_continue
){
console
.
log
(
"Processing file list"
);
...
...
@@ -284,7 +286,9 @@ function process_list_file(xmldoc) {
}
response
+=
"</table><br>"
;
document
.
getElementById
(
'filelist'
).
innerHTML
=
response
;
}
}
else
{
}
}
function
start_compressor
(
parent
,
port
)
{
makeRequest
(
'camogm_interface.php'
,
'?cmd=init_compressor'
,
'&sensor_port='
+
port
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment