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
Show 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() {
...
@@ -29,8 +29,8 @@ function reload() {
makeRequest
(
'camogm_interface.php'
,
'?cmd=run_camogm'
);
makeRequest
(
'camogm_interface.php'
,
'?cmd=run_camogm'
);
setTimeout
(
'makeRequest("camogm_interface.php", "?cmd=setmov")'
,
500
);
// set MOV as default container format
setTimeout
(
'makeRequest("camogm_interface.php", "?cmd=setmov")'
,
500
);
// set MOV as default container format
}
}
function
mount_hdd
()
{
function
mount_hdd
(
callback
)
{
makeRequest
(
'camogm_interface.php'
,
'?cmd=mount'
);
makeRequest
(
'camogm_interface.php'
,
'?cmd=mount'
,
callback
);
document
.
getElementById
(
'directory'
).
value
=
"/var/hdd/"
;
document
.
getElementById
(
'directory'
).
value
=
"/var/hdd/"
;
document
.
getElementById
(
'mount_hdd_button'
).
style
.
display
=
"none"
;
document
.
getElementById
(
'mount_hdd_button'
).
style
.
display
=
"none"
;
}
}
...
@@ -40,7 +40,7 @@ function process_mount_hdd(xmldoc) {
...
@@ -40,7 +40,7 @@ function process_mount_hdd(xmldoc) {
if
(
response
==
"done"
)
if
(
response
==
"done"
)
{
{
//setTimeout('is_hdd_mounted()', 500);
//setTimeout('is_hdd_mounted()', 500);
//is_mounted(,"scan_devices(
)");
scan_devices
(
"is_mounted(selected_device
)"
);
console
.
log
(
"mounted"
);
console
.
log
(
"mounted"
);
}
}
}
}
...
@@ -54,7 +54,7 @@ function mount_custom_partition(partition) {
...
@@ -54,7 +54,7 @@ function mount_custom_partition(partition) {
function
unmount_custom_partition
(
mountpoint
)
{
function
unmount_custom_partition
(
mountpoint
)
{
if
(
mountpoint
!=
""
)
{
if
(
mountpoint
!=
""
)
{
//calling back scan_devices()
//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) {
...
@@ -213,6 +213,7 @@ function list_files(dir) {
function
process_list_file
(
xmldoc
)
{
function
process_list_file
(
xmldoc
)
{
var
can_continue
=
true
;
var
can_continue
=
true
;
if
(
xmldoc
.
getElementsByTagName
(
'list_files'
).
length
>
0
)
{
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
!=
null
)
{
if
(
xmldoc
.
getElementsByTagName
(
'list_files'
)[
0
].
firstChild
.
data
==
"no webshare found"
)
{
if
(
xmldoc
.
getElementsByTagName
(
'list_files'
)[
0
].
firstChild
.
data
==
"no webshare found"
)
{
console
.
log
(
"webshare not found"
);
console
.
log
(
"webshare not found"
);
...
@@ -225,6 +226,7 @@ function process_list_file(xmldoc) {
...
@@ -225,6 +226,7 @@ function process_list_file(xmldoc) {
}
}
}
}
}
}
}
if
(
can_continue
){
if
(
can_continue
){
console
.
log
(
"Processing file list"
);
console
.
log
(
"Processing file list"
);
var
count
=
xmldoc
.
getElementsByTagName
(
'file'
).
length
;
var
count
=
xmldoc
.
getElementsByTagName
(
'file'
).
length
;
...
@@ -284,6 +286,8 @@ function process_list_file(xmldoc) {
...
@@ -284,6 +286,8 @@ function process_list_file(xmldoc) {
}
}
response
+=
"</table><br>"
;
response
+=
"</table><br>"
;
document
.
getElementById
(
'filelist'
).
innerHTML
=
response
;
document
.
getElementById
(
'filelist'
).
innerHTML
=
response
;
}
else
{
}
}
}
}
function
start_compressor
(
parent
,
port
)
{
function
start_compressor
(
parent
,
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