From af74ef969c3cf21e78ee2e93e2956a8812512fe9 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Thu, 18 Feb 2016 16:12:42 -0500 Subject: #164 - initial fixes and refactoring Former-commit-id: 5a21c98c22d8035454cf92eb7b7a4a2b65a4f0e3 --- www/js/DataModel.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index eeae0784..d6331681 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -62,6 +62,7 @@ angular.module('zmApp.controllers') 'minAlarmCount':'1', 'montageSize':'3', 'useNphZms':true, + 'useNphZmsForEvents':false, 'packMontage':true, 'exitOnSleep':false, 'forceNetworkStop':false, @@ -240,6 +241,12 @@ angular.module('zmApp.controllers') loginData.useNphZms = true; } + if (typeof loginData.useNphZmsForEvents == 'undefined') + { + zmDebug ("useNphZmsForEvents does not exist. Setting to false"); + loginData.useNphZmsForEvents = false; + } + if (typeof loginData.packMontage == 'undefined') { zmDebug ("packMontage does not exist. Setting to true"); -- cgit v1.2.3