From e458c052238c5f5bebd33affc7e5750671beeb23 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 19 Nov 2015 21:35:37 -0500 Subject: back button --- StoneIsland/www/js/lib/_router.js | 5 +++++ 1 file changed, 5 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 712d3db2..bbc6bb5f 100644 --- a/StoneIsland/www/js/lib/_router.js +++ b/StoneIsland/www/js/lib/_router.js @@ -70,13 +70,18 @@ var SiteRouter = Router.extend({ else { app.view = app[name] } + app.header.set_back( !! app.view.back ) app.view.show() }.bind(this) return fn }, product: function(code){ + if (app.view && app.view.hide) { + app.view.hide() + } app.view = app.product + app.header.set_back( true ) app.product.load(code) app.product.show() }, -- cgit v1.2.3-70-g09d2