Commit ebae18e2 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed refreshing

parent 570dc8b5
...@@ -214,6 +214,14 @@ ...@@ -214,6 +214,14 @@
$(this).trigger("canvas_ready"); $(this).trigger("canvas_ready");
if (settings.refresh) {
if (DEBUG){
TX = Date.now();
T0 = Date.now();
}
send_request();
}
}else if ((IMAGE_FORMAT=="JP4")||(IMAGE_FORMAT=="JP46")){ }else if ((IMAGE_FORMAT=="JP4")||(IMAGE_FORMAT=="JP46")){
if (settings.fast){ if (settings.fast){
...@@ -256,8 +264,6 @@ ...@@ -256,8 +264,6 @@
// too early // too early
//console.log("#"+elem.attr("id")+", time: "+(Date.now()-t0)/1000+" s"); //console.log("#"+elem.attr("id")+", time: "+(Date.now()-t0)/1000+" s");
if (settings.refresh) get_image();
} }
}); });
} }
...@@ -323,6 +329,14 @@ ...@@ -323,6 +329,14 @@
} }
//trigger here //trigger here
cnv_working.trigger("canvas_ready"); cnv_working.trigger("canvas_ready");
if (settings.refresh) {
if (DEBUG){
TX = Date.now();
T0 = Date.now();
}
send_request();
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment