mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Ensure cancel confirmation dialog is visible on top of main dialog
Bug: T241819 Change-Id: I7764ad13acd52779e4f4ae853c05c795a80dc870
This commit is contained in:
parent
e6d183456e
commit
2a137a2377
|
@ -44,7 +44,9 @@ mw.TemplateData.Target = function mwTemplateDataTarget( $textarea, config ) {
|
|||
.text( mw.msg( 'templatedata-helplink' ) );
|
||||
|
||||
this.windowManager = new OO.ui.WindowManager();
|
||||
$( document.body ).append( this.windowManager.$element );
|
||||
// Ensure OOUI's window manager is on top of ours, because we use OO.ui.confirm() elsewhere.
|
||||
// This is a bit silly...
|
||||
OO.ui.getWindowManager().$element.before( this.windowManager.$element );
|
||||
|
||||
// Dialog
|
||||
this.tdgDialog = new mw.TemplateData.Dialog( config );
|
||||
|
|
Loading…
Reference in a new issue