From 7d9950316368d825510588ded16e5194b4840931 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 23 Nov 2015 01:45:53 -0500 Subject: add to cart after signin.. --- StoneIsland/www/js/lib/_router.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'StoneIsland/www/js/lib/_router.js') diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js index bbc6bb5f..b70d9be8 100644 --- a/StoneIsland/www/js/lib/_router.js +++ b/StoneIsland/www/js/lib/_router.js @@ -59,6 +59,9 @@ var SiteRouter = Router.extend({ default_view: function(name){ var fn = function(){ console.log(name) + if (app.view != app.login && app.view != app.signin) { + app.last_view = app.view + } if (app.view && app.view.hide) { app.view.hide() } -- cgit v1.2.3-70-g09d2