Showing
1 changed file
with
5 additions
and
4 deletions
@@ -39,17 +39,19 @@ $confim.on('touchend', '.cancel', function() { | @@ -39,17 +39,19 @@ $confim.on('touchend', '.cancel', function() { | ||
39 | if ($.type(res) !== 'object') { | 39 | if ($.type(res) !== 'object') { |
40 | res = {}; | 40 | res = {}; |
41 | } | 41 | } |
42 | + $confim.hide(); | ||
42 | if (res.code !== 200) { | 43 | if (res.code !== 200) { |
43 | tip.show(res.message || '网络出了点问题~'); | 44 | tip.show(res.message || '网络出了点问题~'); |
45 | + loading.hideLoadingMask(); | ||
44 | } else { | 46 | } else { |
45 | window.location.reload(); | 47 | window.location.reload(); |
46 | } | 48 | } |
47 | }).fail(function() { | 49 | }).fail(function() { |
48 | tip.show('网络出了点问题~'); | 50 | tip.show('网络出了点问题~'); |
49 | - }).always(function() { | ||
50 | - deleteId = null; | ||
51 | $confim.hide(); | 51 | $confim.hide(); |
52 | loading.hideLoadingMask(); | 52 | loading.hideLoadingMask(); |
53 | + }).always(function() { | ||
54 | + deleteId = null; | ||
53 | }); | 55 | }); |
54 | }); | 56 | }); |
55 | 57 | ||
@@ -73,7 +75,7 @@ $action.on('touchend', '.del', function() { | @@ -73,7 +75,7 @@ $action.on('touchend', '.del', function() { | ||
73 | 75 | ||
74 | $submit.on('touchend', function() { | 76 | $submit.on('touchend', function() { |
75 | if (security.hasDangerInput(false)) { | 77 | if (security.hasDangerInput(false)) { |
76 | - return false; | 78 | + return false; |
77 | } | 79 | } |
78 | $addressForm.submit(); | 80 | $addressForm.submit(); |
79 | return false; | 81 | return false; |
@@ -82,4 +84,3 @@ $submit.on('touchend', function() { | @@ -82,4 +84,3 @@ $submit.on('touchend', function() { | ||
82 | }).on('touchend touchcancel', function() { | 84 | }).on('touchend touchcancel', function() { |
83 | $(this).removeClass('highlight'); | 85 | $(this).removeClass('highlight'); |
84 | }); | 86 | }); |
85 | - |
-
Please register or login to post a comment