Dialogs: handle jQuery content for dialogs

Follow up to Change Ia7ad5aaa9cac429d1c9d706bdf6760e3eda358bc

Bug: T109781
Change-Id: I5373600f4d3c0bb4e5192ca5ce1acea2b853dc3a
This commit is contained in:
Derk-Jan Hartman 2015-08-21 23:47:24 +02:00
parent aa2314c0f8
commit 1d654454c6

View file

@ -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 ) );
}