summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js')
-rwxr-xr-xStoneIsland/www/js/lib/cart/CartPayment.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/cart/CartPayment.js b/StoneIsland/www/js/lib/cart/CartPayment.js
index 884b9d5a..3a9e6412 100755
--- a/StoneIsland/www/js/lib/cart/CartPayment.js
+++ b/StoneIsland/www/js/lib/cart/CartPayment.js
@@ -35,6 +35,11 @@ var CartPayment = FormView.extend({
this.address = new AddressView ({ parent: this, checkPhone: false })
this.cc = new CreditCardView ({ parent: this })
this.scroller = new IScroll('#cart_payment', app.iscroll_options)
+ this.scroller.on('scrollStart', function(){
+ if (document.activeElement.tagName === 'INPUT' || document.activeElement.tagName === 'SELECT') {
+ document.activeElement.blur()
+ }
+ })
this.address.disabled = true
this.cc.disabled = true
},
@@ -85,6 +90,11 @@ var CartPayment = FormView.extend({
focus_on_cc: function(e){
this.scroller.scrollToElement(e.currentTarget)
+ if (e.currentTarget.textShadow === '') {
+ e.currentTarget.textShadow = 'rgba(0,0,0,0) 0 0 0';
+ } else {
+ e.currentTarget.textShadow = '';
+ }
},
populate: function(){