1(function() { 2 'use strict'; 3 4 if (!!window.JCNewsComponent) 5 return; 6 7 window.JCNewsComponent = function(params) { 8 9 }; 10 11 window.JCNewsComponent.prototype = 12 { 13 resetFilter: function () 14 { 15 BX('smi-filter').reset(); 16 this.triggerFilter(); 17 }, 18 19 resetField: function (name) 20 { 21 document.querySelector('[name="'+name+'"]').value = 'all'; 22 this.triggerFilter(); 23 }, 24 25 triggerFilter: function () 26 { 27 var url = BX('smi-filter').action; 28 var listBlock = BX('items-container'); 29 var navBlock = BX('navigation'); 30 var blockWrapper = listBlock.parentNode; 31 32 var formData = $('#smi-filter').serialize(); 33 $.ajax({ 34 url: url, 35 method: 'GET', 36 data: formData, 37 success: function(data) { 38 var block = $(data).find('#ajax-block'); 39 $('#ajax-wrapper').html(block); 40 } 41 }); 42 }, 43 }; 44})();
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.