Commit 906fa733960446ed94a4bfdb3cd9576743e41388

Authored by Alex Savenko
1 parent 664bb9e8

promise

Showing 1 changed file with 15 additions and 15 deletions   Show diff stats
www/dist/js/cart.js
@@ -229,22 +229,22 @@ $('.popup_window').on('click', '.basket_element_prepack .group_sizes', function( @@ -229,22 +229,22 @@ $('.popup_window').on('click', '.basket_element_prepack .group_sizes', function(
229 }, 229 },
230 success: function(data){ 230 success: function(data){
231 var $item_num = $element.find('.item_num'); 231 var $item_num = $element.find('.item_num');
232 - //delOrderItem($prev.data('item_id')); 232 + delOrderItem($prev.data('item_id'));
233 //add_to_basket(item_id, $item_num.val()); 233 //add_to_basket(item_id, $item_num.val());
234 - $.ajax({  
235 - url: '/basket/delete_item',  
236 - data: {  
237 - 'item_id': $prev.data('item_id')  
238 - },  
239 - type: "POST",  
240 - dataType: 'json',  
241 - done: function () {  
242 - add_to_basket(item_id, $item_num.val());  
243 - },  
244 - fail: function (e) {  
245 - console.error(e);  
246 - }  
247 - }); 234 + // $.ajax({
  235 + // url: '/basket/delete_item',
  236 + // data: {
  237 + // 'item_id': $prev.data('item_id')
  238 + // },
  239 + // type: "POST",
  240 + // dataType: 'json',
  241 + // done: function () {
  242 + // add_to_basket(item_id, $item_num.val());
  243 + // },
  244 + // fail: function (e) {
  245 + // console.error(e);
  246 + // }
  247 + // });
248 248
249 $element.find('.price_per_unit span').text(data['price']); 249 $element.find('.price_per_unit span').text(data['price']);
250 calculateSumPrice($item_num); 250 calculateSumPrice($item_num);