Showing
1 changed file
with
3 additions
and
1 deletions
@@ -16,6 +16,7 @@ var $addressForm = $('.edit-address'), | @@ -16,6 +16,7 @@ var $addressForm = $('.edit-address'), | ||
16 | $footer = $('#yoho-footer'), | 16 | $footer = $('#yoho-footer'), |
17 | $backBtn = $('.nav-back'), | 17 | $backBtn = $('.nav-back'), |
18 | $navTitle = $('.nav-title'), | 18 | $navTitle = $('.nav-title'), |
19 | + $input = $('input, textarea'), | ||
19 | navTitle = $navTitle.html(), | 20 | navTitle = $navTitle.html(), |
20 | $area = $('.area'), | 21 | $area = $('.area'), |
21 | isSubmiting, | 22 | isSubmiting, |
@@ -101,6 +102,7 @@ $addressForm.on('submit', function() { | @@ -101,6 +102,7 @@ $addressForm.on('submit', function() { | ||
101 | }); | 102 | }); |
102 | 103 | ||
103 | $submit.on('touchend', function() { | 104 | $submit.on('touchend', function() { |
105 | + $input.blur(); | ||
104 | $addressForm.submit(); | 106 | $addressForm.submit(); |
105 | return false; | 107 | return false; |
106 | }).on('touchstart', function() { | 108 | }).on('touchstart', function() { |
@@ -109,7 +111,7 @@ $submit.on('touchend', function() { | @@ -109,7 +111,7 @@ $submit.on('touchend', function() { | ||
109 | $(this).removeClass('highlight'); | 111 | $(this).removeClass('highlight'); |
110 | }); | 112 | }); |
111 | 113 | ||
112 | -$('input, textarea').on('focus', function() { | 114 | +$input.on('focus', function() { |
113 | $footer.hide(); | 115 | $footer.hide(); |
114 | }).on('blur', function() { | 116 | }).on('blur', function() { |
115 | $footer.show(); | 117 | $footer.show(); |
-
Please register or login to post a comment