jenkins-bot has submitted this change and it was merged. Change subject: WikiEditor: Make JS preview load required modules ......................................................................
WikiEditor: Make JS preview load required modules Change-Id: I5cc3c8577ab088eeba9e6f4ac78411c31ee38fa9 --- M modules/jquery.wikiEditor.preview.js 1 file changed, 6 insertions(+), 1 deletion(-) Approvals: Krinkle: Looks good to me, approved jenkins-bot: Verified diff --git a/modules/jquery.wikiEditor.preview.js b/modules/jquery.wikiEditor.preview.js index 4455875..c7c6f1f 100644 --- a/modules/jquery.wikiEditor.preview.js +++ b/modules/jquery.wikiEditor.preview.js @@ -60,7 +60,7 @@ action: 'parse', title: mw.config.get( 'wgPageName' ), text: wikitext, - prop: 'text', + prop: 'text|modules', pst: '' }, function ( data ) { @@ -76,6 +76,11 @@ context.modules.preview.$preview.find( '.wikiEditor-preview-contents' ) .html( data.parse.text['*'] ) .find( 'a:not([href^=#])' ).click( false ); + var collection = data.parse.modules.concat( + data.parse.modulescripts, + data.parse.modulestyles, + data.parse.modulemessages ); + mw.loader.load( collection ); }, 'json' ); -- To view, visit https://gerrit.wikimedia.org/r/131339 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5cc3c8577ab088eeba9e6f4ac78411c31ee38fa9 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikiEditor Gerrit-Branch: master Gerrit-Owner: TheDJ <hartman.w...@gmail.com> Gerrit-Reviewer: Bartosz DziewoĆski <matma....@gmail.com> Gerrit-Reviewer: Krinkle <krinklem...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits