From 0b9227475c88a5ff909a6e9c00012a2a45ce5cf7 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Wed, 31 Dec 2008 17:23:10 +0000 Subject: Fixed #3709 - Datepicker: clicking on a date causes the browser to follow '#' anchor --- ui/ui.datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index 496cdada0..cb107f748 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -1383,7 +1383,7 @@ $.extend(Datepicker.prototype, { ' ' + this._currentClass : '') + // highlight selected day (printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different) ((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title - (unselectable ? '' : ' onclick="jQuery.datepicker._selectDay(\'#' + + (unselectable ? '' : ' onclick="event.preventDefault();jQuery.datepicker._selectDay(\'#' + inst.id + '\',' + drawMonth + ',' + drawYear + ', this);"') + '>' + // actions (otherMonth ? (showOtherMonths ? printDate.getDate() : ' ') : // display for other months (unselectable ? printDate.getDate() : '