calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Tue Feb 15, 2005 7:16 pm Post subject: How to keep the day of month selected when the month or year gets changed? |
|
|
In the plugins.js file, add some extra code to the fOnChange() function.
Code: | function fOnChange(y,m,d,e) {
if (d==0) {
var lastDay=fGetDays(y)[m];
fUpdSelect(y,m,lastDay<gdSelect[2]?lastDay:gdSelect[2]);
}
} |
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|