Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js |
— | — | @@ -292,6 +292,8 @@ |
293 | 293 | } else { |
294 | 294 | // Make sure the image exists |
295 | 295 | var imageTitle = $.wikiLove.addFilePrefix( $( '#mw-wikilove-image' ).val() ); |
| 296 | + $( '#mw-wikilove-preview-spinner' ).fadeIn( 200 ); |
| 297 | + |
296 | 298 | $.ajax( { |
297 | 299 | url: mw.util.wikiScript( 'api' ), |
298 | 300 | data: { |
— | — | @@ -305,6 +307,7 @@ |
306 | 308 | if ( !data.query.pages[-1].imageinfo ) { |
307 | 309 | // Image does not exist |
308 | 310 | $.wikiLove.showError( 'wikilove-err-image-bad' ); |
| 311 | + $( '#mw-wikilove-preview-spinner' ).fadeOut( 200 ); |
309 | 312 | } else { |
310 | 313 | // Image exists. Proceed with preview. |
311 | 314 | $.wikiLove.submitPreview(); |