mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-28 10:11:03 +00:00
Merge "Dialogs: handle jQuery content for dialogs"
This commit is contained in:
commit
43964691ab
|
@ -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 ) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue