#13119 load_modal oncloseescape option & remove x welcomewindow

This commit is contained in:
Jonathan 2024-03-25 12:20:39 +01:00
parent 6a58c74dbc
commit 1bd402d04c
4 changed files with 11 additions and 1 deletions

View File

@ -1058,8 +1058,10 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
})
}
},
closeOnEscape: true,
onload: () => {
$(document).ready(function () {
$(".ui-dialog-titlebar-close").hide();
var buttonpane = $("div[aria-describedby='welcome_modal_window'] .ui-dialog-buttonpane.ui-widget-content.ui-helper-clearfix");
$(buttonpane).append(`
<div class="welcome-wizard-buttons">

View File

@ -804,8 +804,10 @@ $("#conf_wizard").click(function() {
})
}
},
closeOnEscape: true,
onload: () => {
$(document).ready(function () {
$(".ui-dialog-titlebar-close").hide();
var buttonpane = $("div[aria-describedby='welcome_modal_window'] .ui-dialog-buttonpane.ui-widget-content.ui-helper-clearfix");
$(buttonpane).append(`
<div class="welcome-wizard-buttons">

View File

@ -182,8 +182,10 @@ class WelcomeWindow extends Wizard
})
}
},
closeOnEscape: true,
onload: () => {
$(document).ready(function () {
$(".ui-dialog-titlebar-close").hide();
var buttonpane = $("div[aria-describedby='welcome_modal_window'] .ui-dialog-buttonpane.ui-widget-content.ui-helper-clearfix");
$(buttonpane).append(`
<div class="welcome-wizard-buttons">

View File

@ -449,6 +449,10 @@ function load_modal(settings) {
}
};
if (settings.closeOnEscape == undefined) {
settings.closeOnEscape = true;
}
required_buttons.push({
class:
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub ok submit-next",
@ -518,7 +522,7 @@ function load_modal(settings) {
collision: "fit"
},
buttons: required_buttons,
closeOnEscape: true,
closeOnEscape: settings.closeOnEscape,
open: function() {
//$(".ui-dialog-titlebar-close").hide();
},