1/* 2You can use this file with your scripts. 3It will not be overwritten when you upgrade solution. 4*/ 5 6//window.onerror = function (msg, url, line, col, exception) { BX.ajax.get('/ajax/error_log_logic.php', { data: { msg: msg, exception: exception, url: url, line: line, col: col } }); } 7 8$(document).ready(function(){ 9 $(document).on('click', '.mobile_regions .city_item', function(e){ 10 e.preventDefault(); 11 var _this = $(this); 12 $.removeCookie('current_region'); 13 $.cookie('current_region', _this.data('id'), {path: '/',domain: 'remycom.ru'}); 14 }); 15 16 $(document).on('click', '.region_wrapper .more_item:not(.current) span', function(e){ 17 $.removeCookie('current_region'); 18 $.cookie('current_region', $(this).data('region_id'), {path: '/',domain: 'remycom.ru'}); 19 }); 20 21 $(document).on('click', '.confirm_region .aprove', function(e){ 22 var _this = $(this); 23 $.removeCookie('current_region'); 24 $.cookie('current_region', _this.data('id'), {path: '/',domain: 'remycom.ru'}); 25 }); 26 27 $(document).on('click', '.cities .item a', function(e){ 28 e.preventDefault(); 29 var _this = $(this); 30 $.removeCookie('current_region'); 31 $.cookie('current_region', _this.data('id'), {path: '/',domain: 'remycom.ru'}); 32 }); 33 34 $(document).on('click', '.popup_regions .ui-menu a', function(e){ 35 e.preventDefault(); 36 var _this = $(this); 37 var href = _this.attr('href') 38 if(typeof arRegions !== 'undefined' && arRegions.length){ 39 $.removeCookie('current_region'); 40 for(i in arRegions){ 41 var region = arRegions[i]; 42 if(region.HREF == href){ 43 $.cookie('current_region', region.ID, {path: '/',domain: 'remycom.ru'}); 44 } 45 } 46 } 47 location.href = href; 48 }); 49});
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.