Closed GoogleCodeExporter closed 8 years ago
//DateBox Events
var dateLink = jQuery('<div class="DateLabel"><a href="">' + currentDate.getDate()
+ '</a></div>').click(function(e) {
defaults.onDayLinkClick(currentDate);
e.stopPropagation();
});
var dateBox = jQuery("<td></td>").attr(atts).append(dateLink).dblclick(function(e) {
defaults.onDayCellDblClick(currentDate);
e.stopPropagation();
}).click(function(e) {
defaults.onDayCellClick(currentDate);
e.stopPropagation();
});
Change this to:
//DateBox Events
var dateLink = jQuery('<div class="DateLabel"><a href="">' + currentDate.getDate()
+ '</a></div>').click(function(e) {
defaults.onDayLinkClick(new Date($(this).attr("date")));
e.stopPropagation();
});
var dateBox = jQuery("<td></td>").attr(atts).append(dateLink).dblclick(function(e) {
defaults.onDayCellDblClick(new Date($(this).attr("date")));
e.stopPropagation();
}).click(function(e) {
defaults.onDayCellClick(new Date($(this).attr("date")));
e.stopPropagation();
});
Hope that helps :)
Thanks for the project, btw!
Original comment by insolen...@gmail.com
on 12 Jul 2009 at 11:13
Actually that doesn't fix the LINK, but I bet I can, gimmie a minute!
Original comment by insolen...@gmail.com
on 12 Jul 2009 at 11:15
//DateBox Events
var dateLink = jQuery('<div class="DateLabel"><a href="#">' +
currentDate.getDate() + '</a></div>').click(function(e) {
defaults.onDayLinkClick(new Date($(this).parent().attr("date")));
e.stopPropagation();
});
var dateBox = jQuery("<td></td>").attr(atts).append(dateLink).dblclick(function(e) {
defaults.onDayCellDblClick(new Date($(this).attr("date")));
e.stopPropagation();
}).click(function(e) {
defaults.onDayCellClick(new Date($(this).attr("date")));
e.stopPropagation();
});
Think that gets it.
Original comment by insolen...@gmail.com
on 12 Jul 2009 at 11:17
Thanks
Original comment by alanvi...@gmail.com
on 12 Jul 2009 at 11:29
Thanks for the issue, I found the issue I think. Instead of your new Date() I
used a clone() method which will
return a new date/copy.
Original comment by k.leneau@gmail.com
on 19 Jul 2009 at 7:01
Original comment by k.leneau@gmail.com
on 19 Jul 2009 at 7:09
Original issue reported on code.google.com by
alanvi...@gmail.com
on 1 Jul 2009 at 4:03