1$(document).ready(function(){ 2 3 // CATEGORY MULTI SELECT 4 $('body').on('change', '.bpr-row-select-multiple select', function(e){ 5 $(this).closest('.bpr-row-select-multiple').find('input[type="hidden"]').val($(this).val()); 6 }); 7 8 9 // ICON UPLOAD - FILE NAME 10 $('input[name="bpr-file-icon"]').change(function() { 11 if( $(this)[0].files[0]['name'] != '' ) { 12 $('.bpr-row-icon .bpr-attachment .bpr-att-box .bpr-status .bpr-wrap span').text( $(this)[0].files[0]['name'] ); 13 } 14 }); 15 16 17 // COVER UPLOAD - FILE NAME 18 $('input[name="bpr-file-cover"]').change(function() { 19 if( $(this)[0].files[0]['name'] != '' ) { 20 $('.bpr-row-cover .bpr-attachment .bpr-att-box .bpr-status .bpr-wrap span').text( $(this)[0].files[0]['name'] ); 21 } 22 }); 23 24 25 // PAGINATION CLICK - GO TO ITEMS 26 if((typeof bprPage !== 'undefined' && bprPage >= 1) || (typeof bprCategory !== 'undefined' && bprCategory > 0) || (typeof bprCity !== 'undefined' && bprCity > 0)) { 27 $('html, body').animate({ 28 scrollTop: $('.bpr-filters').offset().top 29 }, 0); 30 } 31 32 33 // FILTER ITEMS BASED ON CITY 34 $('body').on('change', 'select#bpr-city', function(e){ 35 var url = bprSearch; 36 var id = $(this).val(); 37 38 if(id != bprCity) { 39 url = url.replace('{city}', id); 40 url = url.replace('{category}', bprCategory); 41 url = url.replace('{page}', ''); 42 43 window.location.href = url; 44 } 45 }); 46 47 // FILTER ITEMS BASED ON CATEGORY 48 $('body').on('change', 'select#bpr-category', function(e){ 49 var url = bprSearch; 50 var id = $(this).val(); 51 52 if(id != bprCategory) { 53 url = url.replace('{category}', id); 54 url = url.replace('{city}', bprCity); 55 url = url.replace('{page}', ''); 56 57 window.location.href = url; 58 } 59 }); 60 61 // CONTACT DISABLED 62 $('body').on('click', 'a.bpr-btn.bpr-disabled', function(e){ 63 e.preventDefault(); 64 }); 65 66 67 // CONTACT ALLOWED 68 $('body').on('click', 'a.bpr-btn.bpr-go, a.bpr-close', function(e){ 69 e.preventDefault(); 70 $('a.bpr-btn.bpr-go').fadeToggle(200); 71 $('#sellerContact').fadeToggle(200); 72 }); 73 74 75 76 // SHOW-HIDE MAP 77 $('body').on('click', 'a.bpr-show-map, a.bpr-hide-map', function(e){ 78 e.preventDefault(); 79 $('a.bpr-show-map, a.bpr-hide-map').toggleClass('hidden'); 80 $('#sellerMap').fadeToggle(200); 81 }); 82 83 // CREATE TOOLTIPS 84 Tipped.create('.bpr-has-tooltip', { maxWidth: 200, radius: false, behavior: 'hide'}); 85 86 87 88}); 89 90 91
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.