1$(document).ready(function() { 2 3 $('#fecha_desde_aux').datepicker({ 4 altField: "#fecha_desde", 5 altFormat: "yy-mm-dd", 6 dateFormat: 'd MM, yy', 7 onSelect: function (date) { 8 var date2 = $('#fecha_desde_aux').datepicker('getDate'); 9 date2.setDate(date2.getDate() + 1); 10 $('#fecha_hasta_aux').datepicker('setDate', date2); 11 //sets minDate to dt1 date + 1 12 $('#fecha_hasta_aux').datepicker('option', 'minDate', date2); 13 } 14 }); 15 16 $('#fecha_hasta_aux').datepicker({ 17 altField: "#fecha_hasta", 18 altFormat: "yy-mm-dd", 19 dateFormat: 'd MM, yy', 20 onClose: function () { 21 var dt1 = $('#fecha_desde_aux').datepicker('getDate'); 22 console.log(dt1); 23 var dt2 = $('#fecha_hasta_aux').datepicker('getDate'); 24 if (dt2 <= dt1) { 25 var minDate = $('#fecha_hasta_aux').datepicker('option', 'minDate'); 26 $('#fecha_hasta_aux').datepicker('setDate', minDate); 27 } 28 } 29 }); 30 31});
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.