From d2eef84479c99e11f01927ffe119a20669f3c450 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 20 Dec 2017 09:56:55 -0500 Subject: #570 persistent submenu toggle --- www/js/DataModel.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 2c7e640b..2a4ac72f 100755 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -170,7 +170,8 @@ angular.module('zmApp.controllers') 'isFullScreen': false, 'reloadInMontage': false, 'momentGridSize': 40, - 'momentMonitorFilter': [] + 'momentMonitorFilter': [], + 'enableMomentSubMenu': false, }; @@ -1027,6 +1028,12 @@ angular.module('zmApp.controllers') } + if (typeof loginData.enableMomentSubMenu == 'undefined') { + + loginData.enableMomentSubMenu = false; + + } + if (typeof loginData.momentMonitorFilter == 'undefined') { loginData.momentMonitorFilter = JSON.stringify([]); @@ -2067,8 +2074,8 @@ angular.module('zmApp.controllers') getStreamingURL: function (id) { var idnum = parseInt(id); for (var i = 0; i < monitors.length; i++) { + // console.log ("Matched, exiting getMonitorname"); if (parseInt(monitors[i].Monitor.Id) == idnum) { - // console.log ("Matched, exiting getMonitorname"); return monitors[i].Monitor.streamingURL; } -- cgit v1.2.3