Don't update Layout in EDITING mode (montage.js)
Otherwise, it is impossible to save the Layout under the existing name.pull/4013/head
parent
593c4f47ce
commit
3856138f0f
|
@ -110,6 +110,9 @@ function playClicked() {
|
||||||
* @param {*} new_layout_id - the id of a layout to switch to
|
* @param {*} new_layout_id - the id of a layout to switch to
|
||||||
*/
|
*/
|
||||||
function selectLayout(new_layout_id) {
|
function selectLayout(new_layout_id) {
|
||||||
|
if (mode == EDITING) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const ddm = $j('#zmMontageLayout');
|
const ddm = $j('#zmMontageLayout');
|
||||||
if (new_layout_id && (typeof(new_layout_id) != 'object')) {
|
if (new_layout_id && (typeof(new_layout_id) != 'object')) {
|
||||||
ddm.val(new_layout_id);
|
ddm.val(new_layout_id);
|
||||||
|
|
Loading…
Reference in New Issue