Commit 5c527368b0c3fc41f49b5696da79611a56b8886a

Authored by Administrator
1 parent 2e3a817e

24.03.16 finish 1

Showing 2 changed files with 11 additions and 1 deletions   Show diff stats
frontend/web/js/basket.js
... ... @@ -28,6 +28,16 @@ $(document).ready(function(){
28 28  
29 29 });
30 30  
  31 + $('.main_cont_wrap').on('click', '.cart_btn', function(e){
  32 + var id = $(this).data('id');
  33 + $.post( "/orders/buy-items", {id: id, num:1}, function( data ) {
  34 + $('.basket_result').each(function(){
  35 + $(this).html(data)
  36 + });
  37 + });
  38 +
  39 + });
  40 +
31 41 result_block.on('click', '.delete_item_btn', function(){
32 42 var block = $(this).parents('.order_list_li');
33 43  
... ...
frontend/web/js/my_scripts.js
... ... @@ -149,7 +149,7 @@ $(document).ready(function(){
149 149 forget_pass_again_btn = $('.forgot_pass_success_wrapper').find('.my_cust_btn'),
150 150 log_open_btn = $('.login_button_lu'), // окно логина
151 151 reg_open_btn = $('.reg_button_lu'), // кнопка открыть
152   - modal_busket_open = $('.basket_add_but'), // открыть модалку корзины
  152 + modal_busket_open = $('.basket_add_but, .cart_btn'), // открыть модалку корзины
153 153 modal_busket_header_open = $('i.head-down.bh_cell'), // открыть корзину в хедере
154 154 modal_busket_header = $('.busket_modal_header'), // модальная корзина хедер
155 155 modal_busket_header_cont = $('.busket_modal_header .busket_bottom_btn .close'),
... ...