mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Calendar: Use day of the month instead day of the week in setMonth
Fixes $.ui.calendarDate tests.
This commit is contained in:
parent
9c88ac943b
commit
430715b206
2
external/date.js
vendored
2
external/date.js
vendored
@ -75,7 +75,7 @@ $.extend( _Date.prototype, {
|
||||
// the new date will me May 1. We will honor the month the user wants to set and if and overflow
|
||||
// occurs, set to last day of month.
|
||||
var date = this.dateObject,
|
||||
days = date.getDay(), year = date.getFullYear();
|
||||
days = date.getDate(), year = date.getFullYear();
|
||||
if ( days > this.daysInMonth( year, month ) ) {
|
||||
|
||||
// Overflow
|
||||
|
Loading…
Reference in New Issue
Block a user