Ensure cancel confirmation dialog is visible on top of main dialog

Bug: T241819
Change-Id: I7764ad13acd52779e4f4ae853c05c795a80dc870
This commit is contained in:
Bartosz Dziewoński 2020-01-03 12:57:30 +01:00
parent e6d183456e
commit 2a137a2377

View file

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