Skip to content

Commit

Permalink
properly fix multiple dialog popups in a row
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <[email protected]>
  • Loading branch information
si458 committed Jan 7, 2025
1 parent 73c18c4 commit 90b71e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions views/default3.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -6280,6 +6280,7 @@
xxModal.show();
document.getElementById(okButtonId).onclick = function () {
if (typeof okCallback === 'function' && okCallback) {
xxdialogMode = 0; // reset xxdialogMode back to 0 because we might be opening up another dialog and it checks if one is already open
var callbackResult = okCallback(b, tag);
// Close the modal by default unless `false` is explicitly returned from the callback function
if (callbackResult !== false) { xxModal.hide(); }
Expand Down Expand Up @@ -9211,7 +9212,6 @@
}

function deviceActionFunctionEx() {
xxdialogMode = 0; // reset xxdialogMode back to 0
var op = Q('d2deviceop').value;
if (op == 100) {
// Device wake
Expand Down Expand Up @@ -10186,7 +10186,6 @@
}

function askRdpCredentialsEx() {
xxdialogMode = 0;
var width = null, height = null;
if (desktopsettings.rdpsize) {
if (desktopsettings.rdpsize == 'browser') {
Expand Down

0 comments on commit 90b71e9

Please sign in to comment.