projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
log path from /tmp to LEGAL_PATH
[brisk.git]
/
web
/
commons.js
diff --git
a/web/commons.js
b/web/commons.js
index
6281dea
..
c857390
100644
(file)
--- a/
web/commons.js
+++ b/
web/commons.js
@@
-135,10
+135,12
@@
function reset_images()
function update_images()
{
function update_images()
{
+ // if (g_imgct % 10 == 0) alert("g_imgct: "+g_imgct+" xx "+g_preload_img_arr[g_imgct]);
$("imgct").innerHTML = "Immagini caricate "+g_preload_imgsz_arr[g_imgct]+"%.";
$("imgct").innerHTML = "Immagini caricate "+g_preload_imgsz_arr[g_imgct]+"%.";
- if (g_imgct < g_preload_img_arr.length)
- setTimeout(preload_images, 100, g_preload_img_arr, g_imgct);
- g_imgct++;
+ if (g_imgct+1 < g_preload_img_arr.length) {
+ g_imgct++;
+ setTimeout(preload_images, 100, g_preload_img_arr, g_imgct-1);
+ }
// $("imgct").innerHTML += "U";
}
// $("imgct").innerHTML += "U";
}
@@
-177,7
+179,7
@@
function send_mesg(mesg)
var xhr_wr = createXMLHttpRequest();
var xhr_wr = createXMLHttpRequest();
- xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+
encodeURIComponent(mesg)
, true);
+ xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+
mesg
, true);
xhr_wr.onreadystatechange = function() { return; };
xhr_wr.send(null);
xhr_wr.onreadystatechange = function() { return; };
xhr_wr.send(null);