summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-11-12 17:02:18 -0500
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-11-12 17:02:18 -0500
commit4e5e7d28a94106dab8ecf8ff08acfdf5589fe4c6 (patch)
treef84ddadb7267f430dd918f17e0dbb3b5d1b0f6a1 /www/js/DataModel.js
parent63f4c7e94db1243084f3d7cef023c7a1124f03b5 (diff)
#82 - initial commits towards showing monitor specific alarm notitications in montage
Former-commit-id: 278d0c8fb24ef38e607caf66f1f6279b2e36f70b
Diffstat (limited to 'www/js/DataModel.js')
-rw-r--r--www/js/DataModel.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index 12d172b7..b62af980 100644
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -66,6 +66,7 @@ angular.module('zmApp.controllers')
'ZM_PATH_ZMS':''
};
+ // credit: http://stackoverflow.com/questions/4994201/is-object-empty
function isEmpty(obj) {
// null and undefined are "empty"
@@ -98,7 +99,8 @@ angular.module('zmApp.controllers')
function setLogin(newLogin)
{
loginData = newLogin;
-
+
+
zmLog("Saving all parameters to storage");
zmDebug ("DataModel/setLogin: writing " + JSON.stringify(newLogin));
@@ -120,8 +122,6 @@ angular.module('zmApp.controllers')
function displayBanner (mytype, mytext, myinterval, mytimer)
{
- console.log ("FACTORY DISPLAY: " + JSON.stringify(mytext));
- console.log ("FACTTORY DISPLAY: interval:" + myinterval + " timer:" + mytimer);
var contentBannerInstance =
$ionicContentBanner.show({
text: mytext || 'no text',
@@ -886,6 +886,7 @@ angular.module('zmApp.controllers')
for ( i = 0; i< monitors.length; i++)
{
monitors[i].Monitor.listDisplay='show';
+ monitors[i].Monitor.isAlarmed = 'false';
// monitors[i].Monitor.sortOrder=i;
}
d.resolve(monitors);