mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-28 02:00:34 +00:00
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:
parent
51cab7bef6
commit
36588027e5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue