Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
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-web-393
Commits
ce71192a
Commit
ce71192a
authored
Jun 23, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed trig to itself
parent
9e061714
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
snapshot.js
src/snapshot/snapshot.js
+9
-4
No files found.
src/snapshot/snapshot.js
View file @
ce71192a
...
...
@@ -53,7 +53,7 @@ function read_par(param,callback){
function
trigger
(){
$
.
ajax
({
url
:
ip
+
"
/snapshot.php
?trig"
,
url
:
ip
+
"?trig"
,
success
:
function
(){
setTimeout
(
function
(){
...
...
@@ -88,10 +88,15 @@ function restore_trig_period(){
function
download_all
(
rtp
){
ports
.
forEach
(
function
(
c
,
i
){
download_single
(
ip
+
":"
+
c
+
"/
b
img"
);
download_single
(
ip
+
":"
+
c
+
"/img"
);
});
if
(
rtp
)
restore_trig_period
();
// give 500ms (?)
if
(
rtp
)
{
setTimeout
(
function
(){
restore_trig_period
();
},
500
);
}
}
...
...
@@ -104,7 +109,7 @@ function download_single(addr){
document
.
body
.
appendChild
(
link
);
link
.
setAttribute
(
'href'
,
addr
+
"/img"
);
link
.
setAttribute
(
'href'
,
addr
);
link
.
click
();
document
.
body
.
removeChild
(
link
);
...
...
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