Index: trunk/phase3/skins/common/upload.js |
— | — | @@ -54,7 +54,6 @@ |
55 | 55 | return; |
56 | 56 | } |
57 | 57 | |
58 | | - this.setInnerHTML(warningElt, '..'); // TODO: pretty animated GIF |
59 | 58 | this.timeoutID = window.setTimeout( 'wgUploadWarningObj.timeout()', this.delay ); |
60 | 59 | }, |
61 | 60 | |
— | — | @@ -67,8 +66,7 @@ |
68 | 67 | }, |
69 | 68 | |
70 | 69 | 'timeout' : function() { |
71 | | - var warningElt = document.getElementById( 'wpDestFile-warning' ); |
72 | | - this.setInnerHTML(warningElt, '....'); // TODO: pretty animated GIF |
| 70 | + injectSpinner( document.getElementById( 'wpDestFile' ), 'destcheck' ); |
73 | 71 | |
74 | 72 | // Get variables into local scope so that they will be preserved for the |
75 | 73 | // anonymous callback. fileName is copied so that multiple overlapping |
— | — | @@ -83,6 +81,7 @@ |
84 | 82 | }, |
85 | 83 | |
86 | 84 | 'processResult' : function (result, fileName) { |
| 85 | + removeSpinner( 'destcheck' ); |
87 | 86 | this.setWarning(result.responseText); |
88 | 87 | this.responseCache[fileName] = result.responseText; |
89 | 88 | }, |