1jQuery(document).ready(function($) { 2 //I guess these can be tweaked as time goes, but for now these seem like reasonable targets 3 var currentYear = new Date().getFullYear(); 4 var pastYears = currentYear - 100; 5 var futureYears = currentYear + 50; 6 7 var timeFormat = 'HH:mm:ss'; 8 var showTime = true; 9 10 //Front End needs to display cleaner 11 if(typeof MeprDatePicker != "undefined") { 12 timeFormat = MeprDatePicker.timeFormat; 13 showTime = Boolean(MeprDatePicker.showTime); 14 } 15 16 $('.mepr-date-picker').datetimepicker( { 17 dateFormat : 'yy-mm-dd', 18 timeFormat: timeFormat, 19 yearRange : pastYears + ":" + futureYears, 20 changeMonth : true, 21 changeYear : true, 22 showTime : showTime, 23 onSelect : function (date, inst) { 24 $(this).trigger('mepr-date-picker-selected', [date, inst]); 25 }, 26 onChangeMonthYear : function (month, year, inst) { 27 $(this).trigger('mepr-date-picker-changed', [month, year, inst]); 28 }, 29 onClose : function (date, inst) { 30 $(this).val(date.trim()); //Trim off white-space if any 31 $(this).trigger('mepr-date-picker-closed', [date, inst]); 32 } 33 }); 34});
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.