From: Matteo Nastasi (mop) Date: Sun, 1 Feb 2009 15:37:40 +0000 (+0000) Subject: reload() added and restart of image download added X-Git-Tag: 3.0.0~159 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=c57d11623d49e18566644f731791ae34d6e06967;p=brisk.git reload() added and restart of image download added --- diff --git a/web/commons.js b/web/commons.js index d016faf..9d96a72 100644 --- a/web/commons.js +++ b/web/commons.js @@ -164,22 +164,26 @@ function rnd_int(min, max) { function error_images() { - alert("GHESEMU!"); + // alert("GHESEMU!"); + setTimeout(preload_images, 2000, g_preload_img_arr, g_imgct-1); } function abort_images() { - alert("ABORTAIMAGES"); + // alert("ABORTAIMAGES"); + setTimeout(preload_images, 2000, g_preload_img_arr, g_imgct-1); } function unload_images() { - alert("ABORTAIMAGES"); + // alert("ABORTAIMAGES"); + setTimeout(preload_images, 2000, g_preload_img_arr, g_imgct-1); } function reset_images() { - alert("ABORTAIMAGES"); + // alert("ABORTAIMAGES"); + setTimeout(preload_images, 2000, g_preload_img_arr, g_imgct-1); } function update_images() @@ -405,6 +409,13 @@ function act_reload() document.location.reload(); } +function act_reloadroom() +{ + window.onunload = null; + window.onbeforeunload = null; + document.location.assign("index.php"); +} + function act_shutdown() { var c = 0;