#13119 load_modal oncloseescape option & remove x welcomewindow
This commit is contained in:
parent
6a58c74dbc
commit
1bd402d04c
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue