summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-09-04 09:43:09 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-09-04 09:43:09 -0400
commit1649d8a03c8fdd8d9e9491e5c06233f4c15f35a0 (patch)
treefedc2bfa5d7f938b3be4e837022e0034f124c292 /www/js/DataModel.js
parent3e011566d57ada671534906cd080ad59294f0b53 (diff)
#319 - you can now cycle monitors. Time Interval can be specified in developer settings.
Former-commit-id: 401b429cdd914fab7f6399551e4bc9083e803c0b
Diffstat (limited to 'www/js/DataModel.js')
-rw-r--r--www/js/DataModel.js16
1 files changed, 15 insertions, 1 deletions
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));