Re: YEAR drop down only shows ODD YEARS - turn off year button
2006/09/05 23:21
Viewed 5131 times
Replies: 1/4

I meant to say YEARS. It skips YEARS. my subject line was wrong. Sorry.

Re[2]: YEAR drop down only shows ODD YEARS - turn off year butto
2006/09/25 15:56
Viewed 6071 times
Replies: 2/3
by tom

how to turn off the year button i don't know really , but the solution for showing the years in the combobox next and previuos correctly (it actually takes always 2 years) is very simple. Open calendar.js and look around line 310. In function named Calendar.showYearsCombo after the line where it says

yr = yr.nextSibling;

replace the next line with

Y += fwd ? 1 : -1;

the 1 and -1 replace i think something like cal.nextyearstep or so, i can't remember it well.

CY

last
Re[3]: YEAR drop down only shows ODD YEARS - turn off year butto
2006/09/25 21:21
Viewed 7272 times
Replies: 0/0

Awesome, excellent, brilliant ! Thank you so much. It worked like a charm.

Thanks - Brent

last
Re[3]: YEAR drop down only shows ODD YEARS - turn off year butto
2006/10/19 20:13
Viewed 6996 times
Replies: 1/1

Actually, you should probably leave the code alone and use the "step" parameter when you set your calendar up.

Calendar.setup({
/* whatever parms you're using */
step : 1 /* controls the year increment - the default is 2 which is why you're skipping years */
});

last
Google