Skip to content

Commit 3321bd4

Browse files
committed
DatePicker: Replace data() by attr() method to get date information from DOM
1 parent 64aae38 commit 3321bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/widgets/datepicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ $.extend( Datepicker.prototype, {
10361036
}
10371037

10381038
inst = this._getInst( target[ 0 ] );
1039-
inst.selectedDay = inst.currentDay = $( "a", td ).data( "date" );
1039+
inst.selectedDay = inst.currentDay = parseInt($( "a", td ).attr( "data-date" ));
10401040
inst.selectedMonth = inst.currentMonth = month;
10411041
inst.selectedYear = inst.currentYear = year;
10421042
this._selectDate( id, this._formatDate( inst,

0 commit comments

Comments
 (0)