1 2var EcoRubricsHelper = new function () { 3 $(document).ready(function () { 4 EcoRubricsHelper.SearchSubmit(); 5 }); 6 7 this.SearchSubmit = function (backToFirstPage) { 8 if ($('#ecoRubricsSearchForm').length < 1) 9 return false; 10 11 if (backToFirstPage == true) { } 12 else 13 $(".current-page").val(1); 14 var data = $('#ecoRubricsSearchForm').serialize(); 15 EcoRubricsHelper.GetResult(data); 16 EcoRubricsHelper.GetResultCount(data); 17 } 18 19 this.GetResult = function (dataSerialize) { 20 $('#ecoRubricsResult').addClass('disabledbutton'); 21 CommonHelper.ShowLoader(); 22 $.ajax({ 23 url: '/' + languageUI + '/News/EcoRubrics', 24 method: 'post', 25 data: dataSerialize, 26 async: true 27 }).done(function (output) { 28 $("#ecoRubricsResult").html(output); 29 CommonHelper.HideLoader(); 30 $('#ecoRubricsResult').removeClass('disabledbutton'); 31 }); 32 } 33 34 this.GetResultCount = function (dataSerialize) { 35 $('#ecoRubricsResult').addClass('disabledbutton'); 36 CommonHelper.ShowLoader(); 37 $.ajax({
38 url: '/' + languageUI + '/News/GetRubricsCount', 39 method: 'post', 40 data: dataSerialize, 41 async: true 42 }).done(function (output) { 43 $('.pagination-ecoRubrics').pagination({ 44 prevText: '<', 45 nextText: '>', 46 currentPage: $('.current-page').val(), 47 items: output, 48 itemsOnPage: 10, 49 cssStyle: 'light-theme', 50 onPageClick: function (pageNumber, event) { 51 $(".current-page").val(pageNumber); 52 EcoRubricsHelper.SearchSubmit(true); 53 } 54 }); 55 }); 56 } 57}
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.