Authored by 毕凯

阻止重复提交

... ... @@ -80,6 +80,7 @@ $addressForm.on('submit', function() {
isSubmiting = true;
loading.showLoadingMask();
$submit.css('background', '#777');
$.ajax({
method: 'POST',
url: '/home/saveAddress',
... ... @@ -102,6 +103,8 @@ $addressForm.on('submit', function() {
}).fail(function() {
tip.show('网络出了点问题~');
isSubmiting = false;
loading.hideLoadingMask();
$submit.css('background', '#444');
});
return false;
});
... ...