aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.datepicker.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-12-31 17:23:10 +0000
committerRichard Worth <rdworth@gmail.com>2008-12-31 17:23:10 +0000
commit0b9227475c88a5ff909a6e9c00012a2a45ce5cf7 (patch)
tree0fa336a97a584ef6ac9905cf35d97158c9ab4fb2 /ui/ui.datepicker.js
parent043fe4f79d5bd8704ef3b9b12e84885db220c9b7 (diff)
downloadjquery-ui-0b9227475c88a5ff909a6e9c00012a2a45ce5cf7.tar.gz
jquery-ui-0b9227475c88a5ff909a6e9c00012a2a45ce5cf7.zip
Fixed #3709 - Datepicker: clicking on a date causes the browser to follow '#' anchor
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 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() : '&#xa0;') : // display for other months
(unselectable ? printDate.getDate() : '<a class="ui-state-default' +