1/* begin 721 */ 2 3$(function() { 4 /*var $wrapper = $('.folders-li').length, 5 $foldersMoreBtn = $('.folder-more-btn span'); 6 7 if ($wrapper <= 8){ 8 $foldersMoreBtn.css({ 9 display: 'none' 10 }); 11 } 12 13 $foldersMoreBtn.on('click', function(event) { 14 event.preventDefault(); 15 var foldersBlock = $('.folders-li:nth-child(1n+9)'); 16 17 if ($(this).hasClass('active')){ 18 $(this).removeClass('active').text('ÐоказаÑÑ Ð²Ñе'); 19 foldersBlock.css({ 20 'display': 'none' 21 }); 22 } else { 23 $(this).addClass('active').text('СкÑÑÑÑ'); 24 foldersBlock.css({ 25 'display': 'inline-block', 26 'opacity' : '1' 27 }); 28 } 29 });*/ 30 $('.folders-ul .img-block').matchHeight(); 31}); 32 33shop2.queue.print = function () { 34 $('#order-print').on('click', function() { 35 36 s3.printMe('shop2-order', { 37 stylesheet: [ 38 shop2.options.printCSS, 39 '/d/889142/t/images/css/print_css.scss.css' 40 ] 41 }); 42 43 return false; 44 }); 45}; 46 47 48 49/* end 721 */ 50 51/* 1276 */ 52 53$(function(){ 54 55 function debounce(func, wait, immediate) { 56 var timeout; 57 return function() { 58 var context = this, args = arguments; 59 var later = function() { 60 timeout = null; 61 if (!immediate) func.apply(context, args); 62 }; 63 var callNow = immediate && !timeout; 64 clearTimeout(timeout); 65 timeout = setTimeout(later, wait); 66 if (callNow) func.apply(context, args); 67 }; 68 }; 69 70 71 shop2.queue.cart = function() { 72 var updateBtn = $('.shop2-cart-update'), 73 cartTable = $('.shop2-cart-table'), 74 form = $('#shop2-cart'); 75 76 //shop2.on('afterCartRemoveItem, afterCartUpdate', reload_shop_cart); 77 shop2.on('afterCartUpdate', reload_shop_cart); 78 79 function updateBtnShow() { 80 updateBtn.show(); 81 } 82 83 cartTable.find('input:text').on('keypress', function(e) { 84 if (e.keyCode == 13) { 85 shop2.cart.update(form); 86 } else { 87 updateBtnShow(); 88 } 89 }); 90 91 cartTable.find('.amount-minus, .amount-plus').on('click', updateBtnShow); 92 93 updateBtn.on('click', function(e) { 94 e.preventDefault(); 95 shop2.cart.update(form); 96 return false; 97 }); 98 99 100 $('.cart-delete a').on('click', function(e) { 101 var $this = $(this), 102 id = $this.data('id'); 103 104 e.preventDefault(); 105 106 shop2.cart.remove(id); 107 108 }); 109 110 111 }; 112 113 var update_shop_cart = debounce(function() { 114 var form = $('#shop2-cart'); 115 116 shop2.cart.update(form); 117 }, 1500); 118 119 $(document).on('click', '.shop2-cart-product .shop2-product-amount button', update_shop_cart); 120 121 $(document).on('keyup', '.shop2-cart-product .shop2-product-amount input[type="text"]', update_shop_cart); 122 123}); 124 125/* /1276 */
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.