File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1080,7 +1080,7 @@ $.extend( Datepicker.prototype, {
1080
1080
}
1081
1081
1082
1082
inst = this . _getInst ( target [ 0 ] ) ;
1083
- inst . selectedDay = inst . currentDay = $ ( "a" , td ) . html ( ) ;
1083
+ inst . selectedDay = inst . currentDay = parseInt ( $ ( "a" , td ) . attr ( "data-date" ) ) ;
1084
1084
inst . selectedMonth = inst . currentMonth = month ;
1085
1085
inst . selectedYear = inst . currentYear = year ;
1086
1086
this . _selectDate ( id , this . _formatDate ( inst ,
@@ -1932,6 +1932,7 @@ $.extend( Datepicker.prototype, {
1932
1932
( printDate . getTime ( ) === currentDate . getTime ( ) ? " ui-state-active" : "" ) + // highlight selected day
1933
1933
( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
1934
1934
"' href='#' aria-current='" + ( printDate . getTime ( ) === currentDate . getTime ( ) ? "true" : "false" ) + // mark date as selected for screen reader
1935
+ "' data-date='" + printDate . getDate ( ) + // store date as data
1935
1936
"'>" + printDate . getDate ( ) + "</a>" ) ) + "</td>" ; // display selectable date
1936
1937
printDate . setDate ( printDate . getDate ( ) + 1 ) ;
1937
1938
printDate = this . _daylightSavingAdjust ( printDate ) ;
You can’t perform that action at this time.
0 commit comments