r1414 - trunk/ui
r1414 - trunk/ui
Author: rdworth
Date: Wed Dec 31 09:23:10 2008
New Revision: 1414
Modified:
trunk/ui/ui.datepicker.js
Log:
Fixed #3709 - Datepicker: clicking on a date causes the browser to
follow '#' anchor
Modified: trunk/ui/ui.datepicker.js
==============================================================================
--- trunk/ui/ui.datepicker.js (original)
+++ trunk/ui/ui.datepicker.js Wed Dec 31 09:23:10 2008
@@ -1383,7 +1383,7 @@
' ' + 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() : '<a class="ui-state-default' +