Showing
1 changed file
with
5 additions
and
3 deletions
@@ -34,14 +34,16 @@ function editAddress(data) { | @@ -34,14 +34,16 @@ function editAddress(data) { | ||
34 | // $addressForm.find('[name="consignee"]').focus(); | 34 | // $addressForm.find('[name="consignee"]').focus(); |
35 | } | 35 | } |
36 | 36 | ||
37 | -$confim.on('touchend', '.cancel', function(){ | 37 | +$confim.on('touchend', '.cancel', function() { |
38 | deleteId = null; | 38 | deleteId = null; |
39 | $confim.hide(); | 39 | $confim.hide(); |
40 | -}).on('touchend', '.confim', function(){ | 40 | +}).on('touchend', '.confim', function() { |
41 | $.ajax({ | 41 | $.ajax({ |
42 | method: 'POST', | 42 | method: 'POST', |
43 | url: '/home/deladdress', | 43 | url: '/home/deladdress', |
44 | - data: {id: deleteId} | 44 | + data: { |
45 | + id: deleteId | ||
46 | + } | ||
45 | }).then(function(res) { | 47 | }).then(function(res) { |
46 | if ($.type(res) !== 'object') { | 48 | if ($.type(res) !== 'object') { |
47 | res = {}; | 49 | res = {}; |
-
Please register or login to post a comment