1jQuery(document).ready(function() { 2 try { 3 jQuery(".wpv-date-front-end").datepicker({ 4 onSelect: function(dateText, inst) { 5 var control = this, 6 url_param = jQuery(this).data('param'); 7 data = 'date=' + dateText; 8 data += '&date-format=' + jQuery('.js-wpv-date-param-' + url_param + '-format').val(); 9 data += '&action=wpv_format_date'; 10 jQuery.post(front_ajaxurl, data, function(response) { 11 response = jQuery.parseJSON(response); 12 jQuery('.js-wpv-date-param-' + url_param + '-value').val(response['timestamp']); 13 jQuery('.js-wpv-date-param-' + url_param).html(response['display']); 14 }); 15 }, 16 dateFormat : 'ddmmyy', 17 showOn: "button", 18 buttonImage: wpv_calendar_image, 19 buttonText: wpv_calendar_text, 20 buttonImageOnly: true, 21 changeMonth: true, 22 changeYear: true 23 }); 24 } 25 catch (e) { 26 27 } 28 29 // TODO move this style to a unique frontend CSS file for Views 30 jQuery("div.ui-datepicker").css('font-size', '12px'); 31 32 jQuery(document).on('click', '.js-wpv-date-display', function(){ 33 var url_param = jQuery(this).data('param'); 34 jQuery('.js-wpv-date-front-end-' + url_param).datepicker('show'); 35 }); 36 37});
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.