mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
ve.ui.MWTemplateDialog: Fix dialog becoming inert
OOUI support for multiple modal window managers is hacky, and only works correctly when the managers are attached directly to <body>. Remove the wrapper that doesn't seem to be necessary. Bug: T313690 Change-Id: I4134c0f50d28a364dcf15b426bd9b59a4f7a985d
This commit is contained in:
parent
59c2ee6242
commit
9e954b7c20
|
@ -36,10 +36,8 @@ ve.ui.MWTemplateDialog = function VeUiMWTemplateDialog( config ) {
|
|||
this.canGoBack = false;
|
||||
this.preventReselection = false;
|
||||
|
||||
this.confirmOverlay = new ve.ui.Overlay( { classes: [ 've-ui-overlay-global' ] } );
|
||||
this.confirmDialogs = new ve.ui.WindowManager( { factory: ve.ui.windowFactory, isolate: true } );
|
||||
this.confirmOverlay.$element.append( this.confirmDialogs.$element );
|
||||
$( document.body ).append( this.confirmOverlay.$element );
|
||||
$( document.body ).append( this.confirmDialogs.$element );
|
||||
};
|
||||
|
||||
/* Inheritance */
|
||||
|
|
Loading…
Reference in a new issue