cls parameter on setDates weirdness?
I have discovered a problem in the CSS class handling when calling setDates().
If I create an array of dates and then send them to setDates() as follows
Code:
var aDates =
[
{date: new Date(2008, 1, 1), text: "date 1", cls: "hilight-1"},
{date: new Date(2008, 1, 2), text: "date 2", cls: "hilight-2"}
];
cal.setDates(aDates);
when the calendar is re-drawn, the <td> element for both cells now contain a reference for both classes:
Code:
<td class="x-date-active hilight-1 hilight-2" id="ext-gen121" title="">
<a tabindex="1" class="x-date-date" hidefocus="on" href="#">
<em>
<span id="ext-gen61">12</span>
</em>
</a>
</td>
I've tried to step through to see where the problem lies, and I believe it's on or around line 1183/1184:
Code:
if(cal.eventDatesNumbered[2][foundday]!==""){
eCell.addClass(cal.eventDatesNumbered[2]);
In Firebug it looks like after the class is added, the cell now has both classes associated.
1 Attachment(s)
Italian locale with holidays
Hi,
here's the italian locale if anyone needs it..
Ciao
minDate & maxDate + deactivating EventDates
Hello. Actally I do my first project including the DatePickerPlus. The most works fine but I've two questions and can't find anything in the froum:
- I know how to use minDate and Max date and it works (only the allowed range is clickable) but is it also possible to lock the month and year select buttons to the allowes months only? so that it isn't possible to select or scroll into the "forbidden area"? It's not possible to click them anyway and thats good. But why should the user see the days and months? (in my case it's a range from 1st july till 31th dec 08)
- this question is about the EventDates, I know how to use them and it works. But also - is there a way to remove the link from this special days. so that's possible to see them (different style) but not to click them?
Thank you very much
Ronald