diff options
| author | Rene Ae <aehtyb@gmail.com> | 2015-11-30 15:24:27 -0600 |
|---|---|---|
| committer | Rene Ae <aehtyb@gmail.com> | 2015-11-30 15:24:27 -0600 |
| commit | 9d0e54228c79d151c30c527ea83efa7479793686 (patch) | |
| tree | 3baf83427cd61cb1994e8551eefba5cd21d1a65b /StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js | |
| parent | b208cb0283c23d68e8013c0dd5ddd4e5e6df8950 (diff) | |
| parent | d26e72aea3b3127c95c5ba7069c95f73cf52a2fd (diff) | |
Merge branch 'master' of https://github.com/okfocus/stone-island
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js')
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js b/StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js index 7563be2d..b2f01208 100644 --- a/StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js +++ b/StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js @@ -14,7 +14,9 @@ var HeaderView = View.extend({ this.$cart_count = this.$(".cart_count") }, + back_state: false, set_back: function(state){ + this.back_state = state if (state) { this.$burger[0].className = "burger ion-ios-arrow-left" } @@ -24,7 +26,7 @@ var HeaderView = View.extend({ }, nav: function(){ - if (app.view.back) { + if (this.back_state) { app.view.back() } else { @@ -43,7 +45,7 @@ var HeaderView = View.extend({ count: 0, set_cart_count: function(n){ this.count = n - this.$cart_count.html(n) + this.$cart_count.html(n || " ") }, increment_cart_count: function(){ this.$cart_count.html( ++this.count ) |
