From c89196934f5c83b117afdc6c2061f1efe4a2c60a Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 1 Aug 2016 19:46:06 -0400 Subject: #292 - firstuse fixes - dealing with problems of checking firstuse before all data is loaded Former-commit-id: 7b071f959eb86ae0109094f1828a1ca4f7b3cfde --- www/js/DataModel.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'www/js/DataModel.js') 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); }, -- cgit v1.2.3