mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-12-18 19:11:22 +00:00
Dialogs: handle jQuery content for dialogs
Follow up to Change Ia7ad5aaa9cac429d1c9d706bdf6760e3eda358bc Bug: T109781 Change-Id: I5373600f4d3c0bb4e5192ca5ce1acea2b853dc3a
This commit is contained in:
parent
aa2314c0f8
commit
1d654454c6
|
@ -135,6 +135,8 @@ $.wikiEditor.modules.dialogs = {
|
||||||
configuration.buttons = configuration.newButtons;
|
configuration.buttons = configuration.newButtons;
|
||||||
if ( module.htmlTemplate ) {
|
if ( module.htmlTemplate ) {
|
||||||
$content = mw.template.get( 'jquery.wikiEditor.dialogs.config', module.htmlTemplate ).render();
|
$content = mw.template.get( 'jquery.wikiEditor.dialogs.config', module.htmlTemplate ).render();
|
||||||
|
} else if ( module.html instanceof jQuery ) {
|
||||||
|
$content = module.html;
|
||||||
} else {
|
} else {
|
||||||
$content = $( $.parseHTML( module.html ) );
|
$content = $( $.parseHTML( module.html ) );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue