1define('B1TeamOkraina_CustomHtml_CatalogPanel',['jquery', 'main'], function($,B1TeamOkraina_Template) { 2 3 function B1TeamOkraina_CustomHtml_CatalogPanel(arParams){ 4 5 this.container = null; 6 this.arParams = arParams; 7 var _this = this; 8 9 /* 10 * ÐниÑиализаÑÐ¸Ñ 11 */ 12 this.Init = function(){ 13 14 _this.container = $("#"+_this.arParams.id); 15 16 //иниÑиализиÑиÑем конÑÑолÑ, Ñак как Ñалон Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ Ð² композиÑном Ñ Ð¸Ñе 17 B1TeamOkraina_Template.GetInstance().InitControls(_this.container); 18 19 //изменение вÑбÑаннÑого пÑедÑÑÐ°Ð²Ð»ÐµÐ½Ð¸Ñ 20 $(".view",_this.container).click(function(){ 21 _this.OnViewClick(this); 22 return false; 23 }); 24 25 //изменение вÑбÑаннÑой ÑоÑÑиÑовки 26 $("input[name=SORT]",_this.container).change(function(){ 27 _this.OnSortChange(this); 28 return false; 29 }); 30 31 //клик по кнопке ÑилÑÑÑа 32 $(".filter",_this.container).click(function(e){ 33 e.stopPropagation(); 34 BX.onCustomEvent("B1T_OKRAINA_CUSTOM_HTML_MOBILE_FILTER_E_OPEN"); 35 }); 36 }; 37 38 /* 39 * Ðлик по пÑедÑÑÐ°Ð²Ð»ÐµÐ½Ð¸Ñ 40 */ 41 this.OnViewClick = function(sender) { 42 43 $(".view",_this.container).removeClass("selected"); 44 $(sender).addClass("selected"); 45 46 //пеÑезагÑÑзим каÑалог 47 _this.ReloadCatalog(false); 48 }; 49 50 /* 51 * Смена Ð¿Ð¾Ð»Ñ ÑоÑÑиÑовки 52 */ 53 this.OnSortChange = function(sender) { 54 55 //пеÑезагÑÑзим каÑалог 56 _this.ReloadCatalog(false); 57 }; 58 59 /* 60 * ÐеÑезагÑÑÐ¶Ð°ÐµÑ ÐºÐ°Ñалог 61 */ 62 this.ReloadCatalog = function(clearPage){ 63 var arEventParams = { 64 sort: $("input[name=SORT]",_this.container).val(), 65 view: $(".view.selected",_this.container).data("code"), 66 clearPage: clearPage 67 }; 68 69 BX.onCustomEvent('B1T_OKRAINA_CUSTOM_HTML_CATALOG_PANEL_E_REFRESH_CATALOG', [arEventParams]); 70 }; 71 72 73 $(function(){ 74 _this.Init(); 75 }); 76 77 return this; 78 } 79 80 return B1TeamOkraina_CustomHtml_CatalogPanel; 81});
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.