Commit 4a4b672886fe1545fe645077edfb113446ab7947
1 parent
eccd0b3e
24.03.16 finish 1
Showing
1 changed file
with
4 additions
and
2 deletions
Show diff stats
frontend/web/js/basket.js
@@ -46,13 +46,15 @@ $(document).ready(function(){ | @@ -46,13 +46,15 @@ $(document).ready(function(){ | ||
46 | 46 | ||
47 | $.post( "/orders/delete", {id: id}, function( data ) { | 47 | $.post( "/orders/delete", {id: id}, function( data ) { |
48 | }); | 48 | }); |
49 | - | 49 | + var forCount = block.parents('ul'); |
50 | $('.order_list_li[data-id='+id+']').each(function(){ | 50 | $('.order_list_li[data-id='+id+']').each(function(){ |
51 | var block = $(this); | 51 | var block = $(this); |
52 | block.remove(); | 52 | block.remove(); |
53 | }); | 53 | }); |
54 | + countPrise(forCount); | ||
55 | + | ||
56 | + | ||
54 | 57 | ||
55 | - countPrise(block); | ||
56 | 58 | ||
57 | }); | 59 | }); |
58 | 60 |