// append side-by-side jCal with 4 day selection to jCalTarget element
$('#jCalTarget').jCal({
day: new Date(),
days: 4,
showMonths: 2,
monthSelect: true,
callback: function (day, days) {
console.log('selected ' + days + ' days starting ' + day);
}
});
CURRENT RELEASE jCal.0.3.6.zip - LATEST includes jCal.js core, jCal-light.js (lighter version without month or year pulldowns), jsmin'd versions, packer versions, pre-compressed gzip .jsgz versions, jCal.css, jquery.animate.clip.js plugin, example instantiation and images
fixed month/year titles in safari and chrome not spacing correctly - this is because the $(window).load() is more reliable in these browsers than the $(document).ready() especially with applied CSS values.
fixed even propagation and behavior in safari/chrome for the month/year pulldowns
0.3.5
fixed issue with wrong 2nd month displaying if current day of first month was greater than the number of days in the 2nd month. i.e. current date of 7/31/2008 and only 30 days in Sept then Oct would automatically be shown as the next month incorrectly.
fixed so that code could be properly jsmin'd and packer'd
0.3.3
added pretty combobox-ish pulldowns for months and years for easier navigation of date
variable scope bug fixes - no more lost or conflicting settings with multiple jCals
0.3.2
speed improvements when scrolling through months and rollover day highlighting - 10% faster
fixed retention of selected days when scrolling through months when selected days span multiple months
0.3.1
fixed bug when scrolling over months that were completely blacked out via the dCheck functionality.
fixed the dCheck day to be "zeroed out" i.e. the BOD (Beginning Of Day - 00:00:000GMT)to make the dCheck easier to work with.
0.3.0
Fixed bug with jQuery 1.2.6 without the need of a patched version of the jQuery core. As it turns out the jQuery.fn.clone(true) was misused in my code when a simple jQuery.fn.appendTo() could be used to move elements from one container to another faster. This should not only now with with jQuery 1.2.6 but be significantly faster than previous versions when scrolling through months
Added ability to access each instantiated calendar's selected day and selected number of days via the $('#container').data('day') and $('#container').data('days') cached variables from any other javascript scope
The selected day(s) are now re-selected when scrolling through months and then scrolling back to the month(s) the day(s) are selected in