diff options
Diffstat (limited to 'StoneIsland/www/js')
| -rw-r--r-- | StoneIsland/www/js/lib/cart/CartSummary.js | 4 | ||||
| -rw-r--r-- | StoneIsland/www/js/vendor/view/scrollable.js | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartSummary.js b/StoneIsland/www/js/lib/cart/CartSummary.js index 8e81c050..4ca6ab64 100644 --- a/StoneIsland/www/js/lib/cart/CartSummary.js +++ b/StoneIsland/www/js/lib/cart/CartSummary.js @@ -102,6 +102,7 @@ var CartSummary = ScrollableView.extend({ .replace(/{{quantity}}/, 1) .replace(/{{price}}/, as_cash(details.Item.Price.DiscountedPrice)) $el.html(t) + this.deferScrollToTop() }.bind(this)) }.bind(this)) @@ -127,7 +128,8 @@ var CartSummary = ScrollableView.extend({ this.$el.addClass("empty").removeClass("full") }, - ok: function(){ + save: function(){ + console.log("HI") app.router.go('cart/shipping') }, diff --git a/StoneIsland/www/js/vendor/view/scrollable.js b/StoneIsland/www/js/vendor/view/scrollable.js index 2de6a108..7cd96f89 100644 --- a/StoneIsland/www/js/vendor/view/scrollable.js +++ b/StoneIsland/www/js/vendor/view/scrollable.js @@ -1,7 +1,7 @@ var ScrollableView = View.extend({ events: { - "load img": "refreshScroller", + "load img": "deferScrollToTop", }, deferScrollToTop: function(){ |
