summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-30 16:14:29 -0500
committerJules Laplace <jules@okfoc.us>2015-11-30 16:14:29 -0500
commit840cdf39595c6b8a29d2c91447d9fb8a91582a59 (patch)
tree76ec09a7693993f7229948a79dace3f268f001ec /StoneIsland/platforms/ios/www/js/lib/nav/HeaderView.js
parent7920b278e296e99a069c7ab8b78b271e9665a84a (diff)
ui changes
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 )