aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.datepicker.js
diff options
context:
space:
mode:
authorCa-Phun Ung <pazu2k@gmail.com>2009-01-02 16:45:35 +0000
committerCa-Phun Ung <pazu2k@gmail.com>2009-01-02 16:45:35 +0000
commita166e9b977f1a076dba090148c5a252b1166775a (patch)
tree2e9c486c692d9e4c95ebd4863cbecafc155bb097 /ui/ui.datepicker.js
parentf17b70c08a478df824625b9b75b370e06a03062d (diff)
downloadjquery-ui-a166e9b977f1a076dba090148c5a252b1166775a.tar.gz
jquery-ui-a166e9b977f1a076dba090148c5a252b1166775a.zip
datepicker: added a span wrapper to disabled dates for better styling of unselectable days when setting min/max values.
Diffstat (limited to 'ui/ui.datepicker.js')
-rw-r--r--ui/ui.datepicker.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js
index 5fe786e61..b638d1549 100644
--- a/ui/ui.datepicker.js
+++ b/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() : '&#xa0;') : // 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