Don't update Layout in EDITING mode (montage.js)

Otherwise, it is impossible to save the Layout under the existing name.
pull/4013/head
IgorA100 2024-05-19 19:51:02 +03:00 committed by GitHub
parent 593c4f47ce
commit 3856138f0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ function playClicked() {
* @param {*} new_layout_id - the id of a layout to switch to
*/
function selectLayout(new_layout_id) {
if (mode == EDITING) {
return;
}
const ddm = $j('#zmMontageLayout');
if (new_layout_id && (typeof(new_layout_id) != 'object')) {
ddm.val(new_layout_id);