Fix infinite spinner in JS version of show changes

Empty content causes the hiding of the spinner to be skipped.

Bug: 38502
Change-Id: Iefb224877976d463a5bb7b92a8e09fe958cd16c2
This commit is contained in:
Derk-Jan Hartman 2014-04-07 18:51:07 +02:00
parent 51cab7bef6
commit 36588027e5

View file

@ -127,10 +127,10 @@ fn: {
.revisions[0].diff['*'];
context.$changesTab.find( 'table.diff tbody' )
.html( diff );
context.$changesTab
.find( '.wikiEditor-preview-loading' ).hide();
context.modules.preview.changesText = wikitext;
} catch ( e ) { } // "blah is undefined" error, ignore
context.$changesTab
.find( '.wikiEditor-preview-loading' ).hide();
}, 'json'
);
} catch ( e ) { } // "blah is undefined" error, ignore