diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-22 00:59:03 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-22 00:59:03 +0200 |
| commit | ba67e8db43529910b3632410755c4621e43ced91 (patch) | |
| tree | 69b3a312d2dcf7066221b697bfa879b282fefd6e /StoneIsland/platforms/ios/www/js | |
| parent | 07e7d260196fa67beb538bc4d4dd154c2a2867ce (diff) | |
scroll to cc better...
Diffstat (limited to 'StoneIsland/platforms/ios/www/js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js b/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js index 6e071399..884b9d5a 100755 --- a/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js +++ b/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js @@ -15,6 +15,7 @@ var CartPayment = FormView.extend({ "change [name=SameAsShipping]": "toggle_shipping", "click .address_dropdown": "toggle_address", "click .cc_dropdown": "toggle_cc", + "focus [name=Number]": "focus_on_cc", }, initialize: function(opt){ @@ -82,6 +83,10 @@ var CartPayment = FormView.extend({ this.$cc_confirm.toggle(this.cc_list_mode) }, + focus_on_cc: function(e){ + this.scroller.scrollToElement(e.currentTarget) + }, + populate: function(){ this.$(".save_as_default").show() this.$address_list.empty() |
