hack to force us to the food delivery page for existing users

This commit is contained in:
arzynik 2013-09-23 14:29:27 -07:00
parent 6b50bb7d35
commit 47e9c87130

View File

@ -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' );
}
);
*/
});