1jQuery(function($) { 2 3 /************************************/ 4 /* DATE PICKER 5 /************************************/ 6 7 jQuery('[data-type="date"]').datepicker({ dateFormat: 'yymmdd' }); 8 9 jQuery('[data-type="image_upload"]').each(function() { 10 var element = jQuery(this); 11 element.click(function() { 12 formfield = element.attr('name'); 13 tb_show('', 'media-upload.php?type=image&TB_iframe=true'); 14 return false; 15 }); 16 window.send_to_editor = function(html) { 17 imgurl = jQuery('img', html).attr('src'); 18 element.val(imgurl); 19 tb_remove(); 20 } 21 }); 22 23 /************************************/ 24 /* EVENT TYPE FILTER 25 /************************************/ 26 27 $('body').on('click','[data-type="eventFilter"]',function() { 28 return false; 29 }); 30 31 $('body').on('click','[data-type="eventFilter"]:not(".active")',function() { 32 $('[data-type="eventFilter"]').parent().removeClass('active'); 33 $(this).parent().addClass('active'); 34 var target = $(this).data('target'); 35 if(target) { 36 $('[data-type="eventFilterable"]:not(".'+target+'")').addClass('hide-event'); 37 $('[data-type="eventFilterable"].'+target).removeClass('hide-event'); 38 } else { 39 $('[data-type="eventFilterable"]').removeClass('hide-event'); 40 } 41 return false; 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.