Showing
1 changed file
with
7 additions
and
4 deletions
@@ -71,19 +71,20 @@ $('.checkbox').on('touchstart', function() { | @@ -71,19 +71,20 @@ $('.checkbox').on('touchstart', function() { | ||
71 | } | 71 | } |
72 | }); | 72 | }); |
73 | 73 | ||
74 | -$('.invoice').on('touchend', '.checkbox', function() { | 74 | +$invoice.on('touchend', '.checkbox', function() { |
75 | var $this = $(this); | 75 | var $this = $(this); |
76 | 76 | ||
77 | if ($this.hasClass('icon-cb-checked')) { | 77 | if ($this.hasClass('icon-cb-checked')) { |
78 | - $('.invoice').addClass('focus'); | 78 | + $invoice.addClass('focus'); |
79 | } | 79 | } |
80 | if ($this.hasClass('icon-checkbox')) { | 80 | if ($this.hasClass('icon-checkbox')) { |
81 | - $('.invoice').removeClass('focus'); | 81 | + $invoice.removeClass('focus'); |
82 | } | 82 | } |
83 | }); | 83 | }); |
84 | 84 | ||
85 | function orderCompute() { | 85 | function orderCompute() { |
86 | var yohoCoin = orderInfo('yohoCoin'); | 86 | var yohoCoin = orderInfo('yohoCoin'); |
87 | + | ||
87 | $.ajax({ | 88 | $.ajax({ |
88 | method: 'POST', | 89 | method: 'POST', |
89 | url: '/cart/index/orderCompute', | 90 | url: '/cart/index/orderCompute', |
@@ -233,10 +234,12 @@ $('.coin').on('touchend', function() { | @@ -233,10 +234,12 @@ $('.coin').on('touchend', function() { | ||
233 | orderCompute(); | 234 | orderCompute(); |
234 | }); | 235 | }); |
235 | 236 | ||
236 | -$invoice.on('touchend', function() { | 237 | +$invoice.on('touchend', function(e) { |
237 | var $this = $(this); | 238 | var $this = $(this); |
238 | 239 | ||
239 | orderInfo('invoice', $this.find('.checkbox').hasClass('icon-cb-checked')); | 240 | orderInfo('invoice', $this.find('.checkbox').hasClass('icon-cb-checked')); |
241 | + e.preventDefault(); | ||
242 | + e.stopPropagation(); | ||
240 | }); | 243 | }); |
241 | 244 | ||
242 | $invoice.find('[name="invoice-title"]').on('blur', function() { | 245 | $invoice.find('[name="invoice-title"]').on('blur', function() { |
-
Please register or login to post a comment