summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/DataModel.js')
-rw-r--r--www/js/DataModel.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index 74365687..cff49302 100644
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -66,6 +66,7 @@ angular.module('zmApp.controllers')
'exitOnSleep':false,
'forceNetworkStop':false,
'defaultPushSound': false,
+ 'enableBlog':true,
};
@@ -267,6 +268,13 @@ angular.module('zmApp.controllers')
loginData.exitOnSleep = false;
}
+ if (typeof loginData.enableBlog == 'undefined')
+ {
+ zmDebug ("enableBlog does not exist. Setting to true");
+ loginData.enableBlog = true;
+
+ }
+
zmLog ("DataModel init recovered this loginData as " + JSON.stringify(loginData));
}
else
@@ -277,6 +285,7 @@ angular.module('zmApp.controllers')
monitorsLoaded = 0;
//console.log("Getting out of ZMDataModel init");
+ $rootScope.showBlog = loginData.enableBlog;
zmDebug ( "loginData structure values: " + JSON.stringify(loginData));
},
@@ -396,6 +405,7 @@ angular.module('zmApp.controllers')
setLogin: function (newLogin) {
setLogin(newLogin);
+ $rootScope.showBlog = newLogin.enableBlog;
/*