summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/cart/CartPayment.js5
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()