r1478 - trunk/ui
r1478 - trunk/ui
Author: pazu2k@gmail.com
Date: Fri Jan 2 08:45:35 2009
New Revision: 1478
Modified:
trunk/ui/ui.datepicker.js
Log:
datepicker: added a span wrapper to disabled dates for better styling of
unselectable days when setting min/max values.
Modified: trunk/ui/ui.datepicker.js
==============================================================================
--- trunk/ui/ui.datepicker.js (original)
+++ trunk/ui/ui.datepicker.js Fri Jan 2 08:45:35 2009
@@ -1386,7 +1386,7 @@
(unselectable ? '' : ' onclick="jQuery.datepicker._selectDay(\'#' +
inst.id + '\',' + drawMonth + ',' + drawYear + ', this);return
false;"') + '>' + // actions
(otherMonth ? (showOtherMonths ? printDate.getDate() : ' ') :
// display for other months
- (unselectable ? printDate.getDate() : '<a class="ui-state-default' +
+ (unselectable ? '<span class="ui-state-default">' +
printDate.getDate() + '</span>' : '<a class="ui-state-default' +
(printDate.getTime() == today.getTime() ? '
ui-state-highlight' : '') +
(printDate.getTime() >= currentDate.getTime() &&
printDate.getTime() <= endDate.getTime() ? // in current range
' ui-state-active' : '') + // highlight selected day