diff options
author | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-19 08:53:13 +0000 |
---|---|---|
committer | yorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b> | 2008-08-19 08:53:13 +0000 |
commit | fda1595a68b3ee70222c81e8ee22b0232271f44d (patch) | |
tree | d5594fc9dd5d902e5c851bb08db085f480865481 /static | |
parent | 959b9ac1e8f00fbba70747041aad674dff3ba181 (diff) |
Fixed infinite thumbnail generation bug and added note about submitting the screenshot form
git-svn-id: svn://vndb.org/vndb@97 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
Diffstat (limited to 'static')
-rw-r--r-- | static/files/dyna.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/static/files/dyna.js b/static/files/dyna.js index 957cbc3c..b711fec2 100644 --- a/static/files/dyna.js +++ b/static/files/dyna.js @@ -608,7 +608,6 @@ function scrLoad() { scrGenerateTR(i); setTimeout(scrSetSubmit, 1000); - setInterval(scrCheckStatus, 1000); scrCheckStatus(); } @@ -739,7 +738,8 @@ function scrCheckStatus() { if(scrL[i] && scrL[i].load == 2) ids+=(ids?';':'')+'id='+scrL[i].id; if(!ids) - return; + return setTimeout(scrCheckStatus, 1000); + var ti = setTimeout(scrCheckStatus, 10000); ajax('/xml/screenshots.xml?'+ids+';r='+(Math.floor(Math.random()*999)+1), function () { if(!hr || hr.readyState != 4 || !hr.responseText) return; @@ -759,6 +759,8 @@ function scrCheckStatus() { scrSer(); } } + clearTimeout(ti); + setTimeout(scrCheckStatus, 1000); }); } |