diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-30 16:14:29 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-30 16:14:29 -0500 |
| commit | 840cdf39595c6b8a29d2c91447d9fb8a91582a59 (patch) | |
| tree | 76ec09a7693993f7229948a79dace3f268f001ec /StoneIsland/platforms/ios/www/js/lib/cart/CartView.js | |
| parent | 7920b278e296e99a069c7ab8b78b271e9665a84a (diff) | |
ui changes
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/cart/CartView.js')
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/lib/cart/CartView.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/cart/CartView.js b/StoneIsland/platforms/ios/www/js/lib/cart/CartView.js index 8bea43dc..b57caadd 100644 --- a/StoneIsland/platforms/ios/www/js/lib/cart/CartView.js +++ b/StoneIsland/platforms/ios/www/js/lib/cart/CartView.js @@ -15,6 +15,8 @@ var CartView = View.extend({ this.confirm = new CartConfirm ({ parent: this }) this.thanks = new CartThanks ({ parent: this }) + this.$full_msg = this.$(".full_msg") + this.$empty_msg = this.$(".empty_msg") this.$itemcount = this.$(".itemcount") }, @@ -47,4 +49,16 @@ var CartView = View.extend({ this.payment.show() }, + setHeaderCount: function(n){ + if (n) { + this.$itemcount.html(pluralize(n, "ITEM", "S")) + this.$full_msg.show() + this.$empty_msg.hide() + } + else { + this.$full_msg.hide() + this.$empty_msg.show() + } + }, + })
\ No newline at end of file |
