Skip to content
Permalink
Browse files

datepicker: added a span wrapper to disabled dates for better styling…

… of unselectable days when setting min/max values.
  • Loading branch information...
Ca-Phun Ung
Ca-Phun Ung committed Jan 2, 2009
1 parent f17b70c commit a166e9b977f1a076dba090148c5a252b1166775a
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/ui.datepicker.js
@@ -1386,7 +1386,7 @@ $.extend(Datepicker.prototype, {
(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

0 comments on commit a166e9b

Please sign in to comment.
You can’t perform that action at this time.