From 01e32de737806fed9a118c6f857050061639de61 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Sat, 14 Jul 2007 23:59:32 +0000 Subject: [PATCH] Show the spinner for the destination filename check, too --- skins/common/upload.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }, -- 2.20.1