Merge branch 'develop/wap' of http://git.dev.yoho.cn/web/yohobuy into develop/wap
Showing
2 changed files
with
5 additions
and
1 deletions
@@ -80,6 +80,7 @@ $addressForm.on('submit', function() { | @@ -80,6 +80,7 @@ $addressForm.on('submit', function() { | ||
80 | 80 | ||
81 | isSubmiting = true; | 81 | isSubmiting = true; |
82 | loading.showLoadingMask(); | 82 | loading.showLoadingMask(); |
83 | + $submit.css('background', '#777'); | ||
83 | $.ajax({ | 84 | $.ajax({ |
84 | method: 'POST', | 85 | method: 'POST', |
85 | url: '/home/saveAddress', | 86 | url: '/home/saveAddress', |
@@ -102,6 +103,8 @@ $addressForm.on('submit', function() { | @@ -102,6 +103,8 @@ $addressForm.on('submit', function() { | ||
102 | }).fail(function() { | 103 | }).fail(function() { |
103 | tip.show('网络出了点问题~'); | 104 | tip.show('网络出了点问题~'); |
104 | isSubmiting = false; | 105 | isSubmiting = false; |
106 | + loading.hideLoadingMask(); | ||
107 | + $submit.css('background', '#444'); | ||
105 | }); | 108 | }); |
106 | return false; | 109 | return false; |
107 | }); | 110 | }); |
-
Please register or login to post a comment