Merge pull request #4023 from IgorA100/patch-107
Fix: When saving Layout, change "mode = VIEWING" only after successful name checks on Montage pagepull/4025/head
commit
509a9cc6c7
|
@ -383,8 +383,6 @@ function edit_layout(button) {
|
|||
} // end function edit_layout
|
||||
|
||||
function save_layout(button) {
|
||||
mode = VIEWING;
|
||||
|
||||
const form = button.form;
|
||||
let name = form.elements['Name'].value;
|
||||
const layout = layouts[form.zmMontageLayout.value];
|
||||
|
@ -403,6 +401,8 @@ function save_layout(button) {
|
|||
return;
|
||||
}
|
||||
|
||||
mode = VIEWING;
|
||||
|
||||
var Positions = {};
|
||||
Positions['gridStack'] = objGridStack.save(false, false);
|
||||
Positions['monitorStatusPositon'] = $j('#monitorStatusPositon').val(); //Not yet used when reading Layout
|
||||
|
|
Loading…
Reference in New Issue