Merge pull request #4016 from IgorA100/patch-101
Fix: Clear the "changedMonitors" array when "mode == EDITING" and errors in getting "layout" (montage.js)pull/4020/head
commit
e373d57814
|
@ -111,6 +111,7 @@ function playClicked() {
|
||||||
*/
|
*/
|
||||||
function selectLayout(new_layout_id) {
|
function selectLayout(new_layout_id) {
|
||||||
if (mode == EDITING) {
|
if (mode == EDITING) {
|
||||||
|
changedMonitors.length = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const ddm = $j('#zmMontageLayout');
|
const ddm = $j('#zmMontageLayout');
|
||||||
|
@ -120,12 +121,14 @@ function selectLayout(new_layout_id) {
|
||||||
const layout_id = parseInt(ddm.val());
|
const layout_id = parseInt(ddm.val());
|
||||||
if (!layout_id) {
|
if (!layout_id) {
|
||||||
console.log("No layout_id?!");
|
console.log("No layout_id?!");
|
||||||
|
changedMonitors.length = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const layout = layouts[layout_id];
|
const layout = layouts[layout_id];
|
||||||
if (!layout) {
|
if (!layout) {
|
||||||
console.log("No layout found for " + layout_id);
|
console.log("No layout found for " + layout_id);
|
||||||
|
changedMonitors.length = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue