File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1036,7 +1036,7 @@ $.extend( Datepicker.prototype, {
1036
1036
}
1037
1037
1038
1038
inst = this . _getInst ( target [ 0 ] ) ;
1039
- inst . selectedDay = inst . currentDay = $ ( "a" , td ) . html ( ) ;
1039
+ inst . selectedDay = inst . currentDay = parseInt ( $ ( "a" , td ) . attr ( "data-date" ) ) ;
1040
1040
inst . selectedMonth = inst . currentMonth = month ;
1041
1041
inst . selectedYear = inst . currentYear = year ;
1042
1042
this . _selectDate ( id , this . _formatDate ( inst ,
@@ -1816,7 +1816,7 @@ $.extend( Datepicker.prototype, {
1816
1816
( printDate . getTime ( ) === today . getTime ( ) ? " ui-state-highlight" : "" ) +
1817
1817
( printDate . getTime ( ) === currentDate . getTime ( ) ? " ui-state-active" : "" ) + // highlight selected day
1818
1818
( otherMonth ? " ui-priority-secondary" : "" ) + // distinguish dates from other months
1819
- "' href='#'>" + printDate . getDate ( ) + "</a>" ) ) + "</td>" ; // display selectable date
1819
+ "' href='#' data-date='" + printDate . getDate ( ) + "' >" + printDate . getDate ( ) + "</a>" ) ) + "</td>" ; // display selectable date
1820
1820
printDate . setDate ( printDate . getDate ( ) + 1 ) ;
1821
1821
printDate = this . _daylightSavingAdjust ( printDate ) ;
1822
1822
}
You can’t perform that action at this time.
0 commit comments