diff options
author | Ca-Phun Ung <pazu2k@gmail.com> | 2009-01-02 16:45:35 +0000 |
---|---|---|
committer | Ca-Phun Ung <pazu2k@gmail.com> | 2009-01-02 16:45:35 +0000 |
commit | a166e9b977f1a076dba090148c5a252b1166775a (patch) | |
tree | 2e9c486c692d9e4c95ebd4863cbecafc155bb097 /ui/ui.datepicker.js | |
parent | f17b70c08a478df824625b9b75b370e06a03062d (diff) | |
download | jquery-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.js | 2 |
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() : ' ') : // 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 |