From 1d654454c6ef0efe81243e3908140dc79978280f Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Fri, 21 Aug 2015 23:47:24 +0200 Subject: [PATCH] Dialogs: handle jQuery content for dialogs Follow up to Change Ia7ad5aaa9cac429d1c9d706bdf6760e3eda358bc Bug: T109781 Change-Id: I5373600f4d3c0bb4e5192ca5ce1acea2b853dc3a --- modules/jquery.wikiEditor.dialogs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/jquery.wikiEditor.dialogs.js b/modules/jquery.wikiEditor.dialogs.js index 31475ad9..8ae977aa 100644 --- a/modules/jquery.wikiEditor.dialogs.js +++ b/modules/jquery.wikiEditor.dialogs.js @@ -135,6 +135,8 @@ $.wikiEditor.modules.dialogs = { configuration.buttons = configuration.newButtons; if ( module.htmlTemplate ) { $content = mw.template.get( 'jquery.wikiEditor.dialogs.config', module.htmlTemplate ).render(); + } else if ( module.html instanceof jQuery ) { + $content = module.html; } else { $content = $( $.parseHTML( module.html ) ); }