diff options
Diffstat (limited to 'StoneIsland/www/js/lib/_router.js')
| -rw-r--r-- | StoneIsland/www/js/lib/_router.js | 5 |
1 files changed, 5 insertions, 0 deletions
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() }, |
