diff options
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/nav/FooterView.js')
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/lib/nav/FooterView.js | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/nav/FooterView.js b/StoneIsland/platforms/ios/www/js/lib/nav/FooterView.js index 76126102..74b249e6 100644 --- a/StoneIsland/platforms/ios/www/js/lib/nav/FooterView.js +++ b/StoneIsland/platforms/ios/www/js/lib/nav/FooterView.js @@ -3,28 +3,38 @@ var FooterView = View.extend({ el: "#footer", events: { - "click .filter": "filter", - "click .buynow": "buynow", - "click .addtocart": "addtocart", + "click .ok": "ok", "click .cancel": "cancel", - "click .checkout": "checkout", - "click .checkout_proceed": "checkout_proceed", }, initialize: function(){ + this.$ok = this.$(".ok") + this.$cancel = this.$(".cancel") }, - filter: function(){ + show: function(ok, cancel){ + if (cancel) { + this.$ok.removeClass("wide") + this.$cancel.show().html(cancel) + } + else { + this.$ok.addClass("wide") + this.$cancel.hide() + } + this.$ok.html(ok) + this.$el.show() }, - buynow: function(){ + + hide: function(){ + this.$el.hide() }, - addtocart: function(){ + + ok: function(){ + (app.view.save || app.view.ok).bind(app.view)() }, + cancel: function(){ + app.view.cancel ? app.view.cancel() : app.intro.show() }, - checkout: function(){ - }, - checkout_proceed: function(){ - }, - + })
\ No newline at end of file |
