Fixed bug minDate

This commit is contained in:
Valeriy 2013-11-18 15:52:22 +06:00
parent def2fa8c3e
commit 38a87c7b17
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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 ':' ')+