summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-05-17 14:59:53 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-05-17 14:59:53 -0400
commitd10f13313805ac0b9ca69d753ced5876b0edddbb (patch)
treed3bd3297f3f99fe859661e081f3a04bb3a5d3125 /www
parenta9ade2fd8821950fc8217063e87a7ed344d54734 (diff)
#250 - default value for minAlarmCount
Former-commit-id: 01eb3dc0e6ab7819f29a7e887b89c9a58d050f0f
Diffstat (limited to 'www')
-rw-r--r--www/js/DataModel.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index 839991b7..233df399 100644
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -404,6 +404,12 @@ angular.module('zmApp.controllers')
loginData.enableAlarmCount = true;
}
+ if (typeof loginData.minAlarmCount === 'undefined')
+ {
+ zmDebug ("minAlarmCount does not exist, setting to true");
+ loginData.minAlarmCount = 1;
+ }
+
if (typeof loginData.montageSize == 'undefined')
{