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
5759f046
Commit
5759f046
authored
Jun 01, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
next status request only after previous response is received
parent
23bac812
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
camogmgui.js
src/camogmgui/camogmgui.js
+5
-5
No files found.
src/camogmgui/camogmgui.js
View file @
5759f046
...
@@ -413,7 +413,7 @@ function process_recording(xmldoc) {
...
@@ -413,7 +413,7 @@ function process_recording(xmldoc) {
var
file_name
=
xmldoc
.
getElementsByTagName
(
'file_name'
)[
0
].
firstChild
.
data
;
var
file_name
=
xmldoc
.
getElementsByTagName
(
'file_name'
)[
0
].
firstChild
.
data
;
if
(
state
==
'"stopped"'
){
if
(
state
==
'"stopped"'
){
clear
Interval
(
update_intvl
);
clear
Timeout
(
update_intvl
);
}
else
{
}
else
{
var
frame_period
=
0
;
var
frame_period
=
0
;
var
rates
=
xmldoc
.
getElementsByTagName
(
'frame_period'
);
var
rates
=
xmldoc
.
getElementsByTagName
(
'frame_period'
);
...
@@ -427,8 +427,8 @@ function process_recording(xmldoc) {
...
@@ -427,8 +427,8 @@ function process_recording(xmldoc) {
}
else
{
}
else
{
frame_period
=
1000
;
frame_period
=
1000
;
}
}
clear
Interval
(
update_intvl
);
clear
Timeout
(
update_intvl
);
update_intvl
=
set
Interval
(
update_state
,
frame_period
);
update_intvl
=
set
Timeout
(
update_state
,
frame_period
);
}
}
//Update HTML
//Update HTML
document
.
getElementById
(
'ajax_state'
).
innerHTML
=
state
.
substring
(
1
,
state
.
length
-
1
);
document
.
getElementById
(
'ajax_state'
).
innerHTML
=
state
.
substring
(
1
,
state
.
length
-
1
);
...
@@ -536,8 +536,8 @@ function toggle_recording() {
...
@@ -536,8 +536,8 @@ function toggle_recording() {
document
.
getElementById
(
'record_text'
).
innerHTML
=
"<img src=
\"
images/stop.gif
\"
style=
\"
position:relative; bottom:-5px;
\"
> STOP"
;
document
.
getElementById
(
'record_text'
).
innerHTML
=
"<img src=
\"
images/stop.gif
\"
style=
\"
position:relative; bottom:-5px;
\"
> STOP"
;
document
.
getElementById
(
'sitecoloumn'
).
style
.
backgroundColor
=
"#AF2020"
;
document
.
getElementById
(
'sitecoloumn'
).
style
.
backgroundColor
=
"#AF2020"
;
clear
Interval
(
update_intvl
);
clear
Timeout
(
update_intvl
);
update_intvl
=
set
Interval
(
update_state
,
1000
);
update_intvl
=
set
Timeout
(
update_state
,
1000
);
}
}
//update_state();
//update_state();
}
}
...
...
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