diff --git a/www/js/home.js b/www/js/home.js
index a4e3f60..1f82bff 100644
--- a/www/js/home.js
+++ b/www/js/home.js
@@ -93,9 +93,4 @@ function loadHomePage(callback) {
callback();
}
});
-}
-
-setTimeout(function () {
- loadHomePage(function () {
- });
-}, 500);
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/www/pages/home.html b/www/pages/home.html
index e85f28b..37e9323 100644
--- a/www/pages/home.html
+++ b/www/pages/home.html
@@ -51,6 +51,7 @@
+ {{#if receiver}}
-
+ {{else}}
+ {{/if}}
diff --git a/www/routes.js b/www/routes.js
index ef7bdee..e4340f0 100644
--- a/www/routes.js
+++ b/www/routes.js
@@ -10,17 +10,17 @@ var routes = [
path: '/home',
templateUrl: './pages/home.html',
name: 'home',
- async: function (routeTo, routeFrom, resolve, reject) {
- var giver = localStorage.getItem("accttype") == "giver";
- var receiver = localStorage.getItem("accttype") == "receiver";
- resolve({
- templateUrl: './pages/home.html'
- }, {
- context: {
- giver: giver,
- receiver: receiver
- }
- });
+ keepAlive: true,
+ options: {
+ context: {
+ giver: localStorage.getItem("accttype") == "giver",
+ receiver: localStorage.getItem("accttype") == "receiver"
+ }
+ },
+ on: {
+ pageAfterIn: function () {
+ loadHomePage(function () {});
+ }
}
},
{