The demo at the top of
http://www.overset.com/2008/05/12/multiday-calendar-datepicker-jquery-plugin/
has a serious issue - the selected date range functionality simply doesn't
function as one would expect as a result of the influence of the disabled 3rd
of every month...
To explain, if "number of days" is set to 4 and you place the cursor on the 1st
of the month, you would expect the 1st, 2nd, 4th, and 5th to be selected.
Alternatively, if the idea is to only allow the selection of *contiguous*
blocks of 4 days it should prevent the 3rd falling within the range at all,
hence the first valid start date within a month should be the 4th, with the 4
day range extending to the 5th, 6th and 7th, and the last valid start date in a
month should be the 30th in a month with 31 days, with the 4 day range
extending to the 31st, and the 1st & 2nd of the next month. Any attempts to
place the range where a disabled/unavailable day should be rejected with
appropriate visual indication (perhaps including the "not-allowed" cursor, see
http://www.quirksmode.org/css/cursor.html)
Both of the behaviours are rational & desirable in different circumstances and
your plugin should allow either to be selected.
However, your plugin currently does neither of these - instead it visually
truncates the range as you hover, and updates the date range selector to match
when you click. This may well be desirable too in some rare circumstances (I
can't think of any) I suggest that this should not be the default behaviour -
the contiguous range behaviour would be the safest default.
(Tested only in Chrome 9)
Original issue reported on code.google.com by marcu...@gmail.com on 7 Mar 2011 at 12:39
Original issue reported on code.google.com by
marcu...@gmail.com
on 7 Mar 2011 at 12:39