summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js')
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js6
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 )