diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-19 21:35:37 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-19 21:35:37 -0500 |
| commit | e458c052238c5f5bebd33affc7e5750671beeb23 (patch) | |
| tree | 6c827251b71fe078071a44e2cd6fa0ad4c4ab223 /StoneIsland/www/js/lib/_router.js | |
| parent | 6500cf422563eac86341a1fbc937e5554a66ee78 (diff) | |
back button
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() }, |
