Showing
1 changed file
with
4 additions
and
3 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 | ||
@@ -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