summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-11-10 14:45:12 -0500
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-11-10 14:45:12 -0500
commitedc8404f49bada3f8105f129afba887c39aaa207 (patch)
tree701ddff503b53120c470110a31c48be40fe5798b /www/js
parent52bf5f3a090296718c35d961dd3733369423478b (diff)
#76 - warm and fuzzy first use message
Former-commit-id: 3c93c3c9c9fe4c0b3aeb316cf46ea35791273456
Diffstat (limited to 'www/js')
-rw-r--r--www/js/DataModel.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index 4afd4ad4..caca93d6 100644
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -390,6 +390,19 @@ angular.module('zmApp.controllers')
isBackground: function() {
return isBackground;
},
+
+ isFirstUse: function() {
+ return ((window.localStorage.getItem("isFirstUse")==undefined)?true:false);
+
+ },
+
+ //-----------------------------------------------------------------
+ // Allow the option to reset first use if I need it in future
+ //-----------------------------------------------------------------
+ setFirstUse: function(val) {
+ window.localStorage.setItem("isFirstUse",val?"1":"0");
+
+ },