From: Rob Church Date: Sat, 14 Jul 2007 23:59:32 +0000 (+0000) Subject: Show the spinner for the destination filename check, too X-Git-Tag: 1.31.0-rc.0~52096 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=01e32de737806fed9a118c6f857050061639de61;p=lhc%2Fweb%2Fwiklou.git Show the spinner for the destination filename check, too --- diff --git a/skins/common/upload.js b/skins/common/upload.js index d6f589fb90..69f81d0857 100644 --- a/skins/common/upload.js +++ b/skins/common/upload.js @@ -54,7 +54,6 @@ var wgUploadWarningObj = { return; } - this.setInnerHTML(warningElt, '..'); // TODO: pretty animated GIF this.timeoutID = window.setTimeout( 'wgUploadWarningObj.timeout()', this.delay ); }, @@ -67,8 +66,7 @@ var wgUploadWarningObj = { }, 'timeout' : function() { - var warningElt = document.getElementById( 'wpDestFile-warning' ); - this.setInnerHTML(warningElt, '....'); // TODO: pretty animated GIF + injectSpinner( document.getElementById( 'wpDestFile' ), 'destcheck' ); // Get variables into local scope so that they will be preserved for the // anonymous callback. fileName is copied so that multiple overlapping @@ -83,6 +81,7 @@ var wgUploadWarningObj = { }, 'processResult' : function (result, fileName) { + removeSpinner( 'destcheck' ); this.setWarning(result.responseText); this.responseCache[fileName] = result.responseText; },