diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-08-01 19:46:06 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-08-01 19:46:06 -0400 |
| commit | c89196934f5c83b117afdc6c2061f1efe4a2c60a (patch) | |
| tree | eece008671bdc04ddff9ee4217e780a6cff49d54 /www/js/DataModel.js | |
| parent | 0dcbfc493c5c08b463d3cb02c29f932ff3e3f2ea (diff) | |
#292 - firstuse fixes - dealing with problems of checking firstuse before all data is loaded
Former-commit-id: 7b071f959eb86ae0109094f1828a1ca4f7b3cfde
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 681e8fbd..4a02f5bc 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -427,6 +427,10 @@ angular.module('zmApp.controllers') $ionicLoading.show({ template: "retrieving profile data..." }); + + + + localforage.getItem("serverGroupList").then(function (val) { $ionicLoading.hide(); serverGroupList = val; @@ -746,6 +750,8 @@ angular.module('zmApp.controllers') //localforage.setItem("isFirstUse", val, // function(err) {if (err) zmLog ("localforage error, //storing isFirstUse: " + JSON.stringify(err));}); isFirstUse = val; + localforage.setItem ("isFirstUse",val); + console.log (">>>>>>setting isFirstUse to " + val); }, |
