From 0363f7e9f610c3a81df46e440978722b6b2acf7f Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Fri, 1 Apr 2016 14:17:42 -0400 Subject: #209 allow toggling between alarmed and non alarmed frames Former-commit-id: 4d56d68fb19f6f5997c050140d6aa28d7949dccd --- www/js/DataModel.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index cccc54c2..96c55a9d 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -74,6 +74,7 @@ angular.module('zmApp.controllers') 'use24hr':false, 'packeryPositions':'', 'packerySizes':'', + 'timelineModalGraphType':'alarmed', }; @@ -444,6 +445,13 @@ angular.module('zmApp.controllers') } + if (typeof timelineModalGraphType == 'undefined') + { + zmDebug ("timeline graph type not set. Setting to alarmed"); + loginData.timelineModalGraphType = 'alarmed'; + } + + if (typeof loginData.montageHistoryQuality == 'undefined') { zmDebug ("montageHistoryQuality does not exist. Setting to 50"); -- cgit v1.2.3