WIP command center

This commit is contained in:
Daniel Barbero Martin 2021-04-29 15:59:12 +02:00
parent 2ca981b03e
commit e1847c76ee
1 changed files with 9 additions and 1 deletions

View File

@ -466,6 +466,14 @@ function confirmDialog(settings) {
settings.strOKButton = "Ok";
}
if (settings.strOKButton == undefined) {
settings.strOKButton = "Ok";
}
if (settings.strCancelButton == undefined) {
settings.strCancelButton = "Cancel";
}
if (typeof settings.message == "function") {
$("body").append(
'<div id="confirm_' + randomStr + '">' + settings.message() + "</div>"
@ -487,7 +495,7 @@ function confirmDialog(settings) {
buttons: [
{
id: "cancel_btn_dialog",
text: "Cancel",
text: settings.strCancelButton,
class:
hideCancelButton +
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub upd submit-cancel",