1$(document).ready(function () { 2 function applyFilter() { 3 var getParams = $('#accessory-filter-form').serialize(); 4 var newUrl = window.location.href.split('?')[0] + '?' + getParams; 5 window.history.pushState('', '', newUrl); 6 $.pjax.reload({container: "#accessories_items"}).then(function () { 7 $.pjax.reload({container: "#filter_pjax"}); 8 lazyLoadBackGround('data-lazybg'); 9 }); 10 } 11 12 $(document).on('change', '.accessories-filter-cat', function () { 13 applyFilter(); 14 }); 15 16 $(document).on('change', '.accessories-filter-dropDown-model--box .catalogProductionYear', function () { 17 applyFilter(); 18 }); 19 20 $(document).on('click', '.accessories-filter-model', function () { 21 $('#filterAttrModel').val($(this).data('model')); 22 applyFilter(); 23 }); 24 25 $(document).on('click', '.accessories-filter-sorter', function () { 26 var getNewData = $(this).data('model'); 27 28 var hiddenInputId = $(this).parent().attr("inputid"); 29 $("#" + hiddenInputId).val(getNewData).trigger("change"); 30 applyFilter(); 31 }); 32 33 $('.accessories-filter-dropDown-model').select2({ 34 dropdownParent: $('.accessories-filter-dropDown-model').closest('.accessories-filter-dropDown-model--box') 35 }); 36 $(document).on('change', '.accessories-filter-dropDown-model', function(){ 37 applyFilter(); 38 }); 39 40}); 41 42 43//print accessories pdf 44;!function ($) { 45 $(function () { 46 $('body').on('click', '.popupFavorFooterBtns-print', function(e){ 47 e.preventDefault(); 48 49 var objFra = document.createElement('iframe'); 50 objFra.style.visibility = "hidden"; 51 objFra.src = $(this).attr('data-pdf-url'); 52 document.body.appendChild(objFra); 53 objFra.contentWindow.focus(); 54 objFra.contentWindow.print(); 55 56 }); 57 }) 58}(jQuery);
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.