From 36588027e5de92607b58158affa76449e4fd390d Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Mon, 7 Apr 2014 18:51:07 +0200 Subject: [PATCH] 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 --- modules/jquery.wikiEditor.preview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/jquery.wikiEditor.preview.js b/modules/jquery.wikiEditor.preview.js index 372d2e8e..0c209b85 100644 --- a/modules/jquery.wikiEditor.preview.js +++ b/modules/jquery.wikiEditor.preview.js @@ -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