diff options
Diffstat (limited to 'www/js/MontageCtrl.js')
| -rw-r--r-- | www/js/MontageCtrl.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js index b02cbe6b..8feb8ba1 100644 --- a/www/js/MontageCtrl.js +++ b/www/js/MontageCtrl.js @@ -211,9 +211,19 @@ function initPackery() layouttype = false; } - if ($scope.MontageMonitors.length != positions.length) + + var cnt=0; + $scope.MontageMonitors.forEach(function(elem) + { + if ((elem.Monitor.Elabled!='0') && (elem.Monitor.Function!='None')) + cnt++; + }); + + ZMDataModel.zmLog ("Monitors that are active: " + cnt + " while grid has " + positions.length); + + if (cnt!= positions.length) { - ZMDataModel.zmLog ("Monitors found:"+$scope.MontageMonitors.length+" but layout says:"+positions.length); + ZMDataModel.zmLog ("Whoops!! Monitors have changed. I'm resetting layouts, sorry!"); layouttype = true; positions = {}; |
