Fix: When saving Layout, change "mode = VIEWING" only after successful name checks (montage.js)
parent
642d50fb8a
commit
b87b3de292
|
@ -383,8 +383,6 @@ function edit_layout(button) {
|
||||||
} // end function edit_layout
|
} // end function edit_layout
|
||||||
|
|
||||||
function save_layout(button) {
|
function save_layout(button) {
|
||||||
mode = VIEWING;
|
|
||||||
|
|
||||||
const form = button.form;
|
const form = button.form;
|
||||||
let name = form.elements['Name'].value;
|
let name = form.elements['Name'].value;
|
||||||
const layout = layouts[form.zmMontageLayout.value];
|
const layout = layouts[form.zmMontageLayout.value];
|
||||||
|
@ -403,6 +401,8 @@ function save_layout(button) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mode = VIEWING;
|
||||||
|
|
||||||
var Positions = {};
|
var Positions = {};
|
||||||
Positions['gridStack'] = objGridStack.save(false, false);
|
Positions['gridStack'] = objGridStack.save(false, false);
|
||||||
Positions['monitorStatusPositon'] = $j('#monitorStatusPositon').val(); //Not yet used when reading Layout
|
Positions['monitorStatusPositon'] = $j('#monitorStatusPositon').val(); //Not yet used when reading Layout
|
||||||
|
|
Loading…
Reference in New Issue