From 1649d8a03c8fdd8d9e9491e5c06233f4c15f35a0 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 4 Sep 2016 09:43:09 -0400 Subject: #319 - you can now cycle monitors. Time Interval can be specified in developer settings. Former-commit-id: 401b429cdd914fab7f6399551e4bc9083e803c0b --- www/js/DataModel.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 233e92df..43f350d6 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -103,7 +103,9 @@ angular.module('zmApp.controllers') 'forceImageModePath': false, 'disableNative': false, 'vibrateOnPush': true, - 'soundOnPush': true + 'soundOnPush': true, + 'cycleMonitors': false, + 'cycleMonitorsInterval':10, // 10sec @@ -673,6 +675,18 @@ angular.module('zmApp.controllers') loginData.soundOnPush = true; } + + if (typeof loginData.cycleMonitors == 'undefined') { + + loginData.cycleMonitors = false; + + } + + if (typeof loginData.cycleMonitorsInterval == 'undefined') { + + loginData.cycleMonitorsInterval = 10; + + } log("DataModel init recovered this loginData as " + JSON.stringify(loginData)); -- cgit v1.2.3