From 47e9c871307bd5ea899323a93c97dc44ae39bbaa Mon Sep 17 00:00:00 2001 From: arzynik Date: Mon, 23 Sep 2013 14:29:27 -0700 Subject: [PATCH] hack to force us to the food delivery page for existing users --- www/assets/js/controllers.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/www/assets/js/controllers.js b/www/assets/js/controllers.js index 3d3daff4b..0edafb83e 100644 --- a/www/assets/js/controllers.js +++ b/www/assets/js/controllers.js @@ -34,8 +34,15 @@ NGApp.controller('HomeCtrl', function ($scope, $http, $location, RestaurantsServ if (!App.isPhoneGap) { location.init(); } - + var restaurants = RestaurantsService; + + // @hack + // just force the location to the food-delivery page. if we dont have a loc it sends us back to location anyway + $location.path( '/' + restaurants.permalink ); + return; + + /* restaurants.list( // Success function(){ @@ -46,6 +53,7 @@ NGApp.controller('HomeCtrl', function ($scope, $http, $location, RestaurantsServ $location.path( '/location' ); } ); + */ });