WIP command center
This commit is contained in:
parent
2ca981b03e
commit
e1847c76ee
pandora_console/include/javascript
|
@ -466,6 +466,14 @@ function confirmDialog(settings) {
|
||||||
settings.strOKButton = "Ok";
|
settings.strOKButton = "Ok";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (settings.strOKButton == undefined) {
|
||||||
|
settings.strOKButton = "Ok";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (settings.strCancelButton == undefined) {
|
||||||
|
settings.strCancelButton = "Cancel";
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof settings.message == "function") {
|
if (typeof settings.message == "function") {
|
||||||
$("body").append(
|
$("body").append(
|
||||||
'<div id="confirm_' + randomStr + '">' + settings.message() + "</div>"
|
'<div id="confirm_' + randomStr + '">' + settings.message() + "</div>"
|
||||||
|
@ -487,7 +495,7 @@ function confirmDialog(settings) {
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
id: "cancel_btn_dialog",
|
id: "cancel_btn_dialog",
|
||||||
text: "Cancel",
|
text: settings.strCancelButton,
|
||||||
class:
|
class:
|
||||||
hideCancelButton +
|
hideCancelButton +
|
||||||
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub upd submit-cancel",
|
"ui-widget ui-state-default ui-corner-all ui-button-text-only sub upd submit-cancel",
|
||||||
|
|
Loading…
Reference in New Issue