Skip to content

Commit

Permalink
Layout Name Edit: Fix multiple modal opening (xibosignage#2309)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenberttpingol authored Jan 16, 2024
1 parent a460bb7 commit e924e4b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ui/src/core/xibo-cms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1940,9 +1940,6 @@ function XiboFormRender(sourceObj, data = null) {
return false;
}

// Currently only support one of these at once.
bootbox.hideAll();

lastForm = formUrl;

// Call with AJAX
Expand Down Expand Up @@ -2009,6 +2006,12 @@ function XiboFormRender(sourceObj, data = null) {
if (sourceObj && typeof sourceObj === 'object') {
size = sourceObj.data().modalSize || 'large';
}

// Currently only support one of these at once.
// We have to move this here before calling bootbox.dialog
// to avoid multiple modal being opened
bootbox.hideAll();

var dialog = bootbox.dialog({
message: response.html,
title: dialogTitle,
Expand Down

0 comments on commit e924e4b

Please sign in to comment.