mirror of
https://github.com/xdan/datetimepicker.git
synced 2024-11-18 06:24:22 +00:00
Fixed bug minDate
This commit is contained in:
parent
def2fa8c3e
commit
38a87c7b17
@ -27,6 +27,7 @@ $('#datetimepicker1').datetimepicker({
|
|||||||
$('#datetimepicker2').datetimepicker({
|
$('#datetimepicker2').datetimepicker({
|
||||||
timepicker:false,
|
timepicker:false,
|
||||||
format:'d/m/Y',
|
format:'d/m/Y',
|
||||||
|
minDate:0,
|
||||||
});
|
});
|
||||||
$('#datetimepicker3').datetimepicker({
|
$('#datetimepicker3').datetimepicker({
|
||||||
inline:true,
|
inline:true,
|
||||||
|
@ -300,8 +300,8 @@
|
|||||||
table+='<td data-date="'+start.getDate()+'" data-month="'+start.getMonth()+'" data-year="'+start.getFullYear()+'"'+
|
table+='<td data-date="'+start.getDate()+'" data-month="'+start.getMonth()+'" data-year="'+start.getFullYear()+'"'+
|
||||||
' class="'+
|
' class="'+
|
||||||
(
|
(
|
||||||
(options.maxDate!==false&&xd.strtodate(options.maxDate).getTime()<start.getTime())||
|
(options.maxDate!==false&&Math.round(xd.strtodate(options.maxDate).getTime()/86400000)<Math.round(start.getTime()/86400000))||
|
||||||
(options.minDate!==false&&xd.strtodate(options.minDate).getTime()>start.getTime())
|
(options.minDate!==false&&Math.round(xd.strtodate(options.minDate).getTime()/86400000)>Math.round(start.getTime()/86400000))
|
||||||
?'xdsoft_disabled ':' ')+
|
?'xdsoft_disabled ':' ')+
|
||||||
(xd.currentTime.getMonth()!=start.getMonth()?' xdsoft_other_month ':' ')+
|
(xd.currentTime.getMonth()!=start.getMonth()?' xdsoft_other_month ':' ')+
|
||||||
(xd.currentTime.dateFormat('d.m.Y')==start.dateFormat('d.m.Y')?' xdsoft_current ':' ')+
|
(xd.currentTime.dateFormat('d.m.Y')==start.dateFormat('d.m.Y')?' xdsoft_current ':' ')+
|
||||||
|
Loading…
Reference in New Issue
Block a user