Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiSelect and rangeSelect a week don't work together #30

Open
Wikinaut opened this issue Oct 30, 2015 · 0 comments
Open

multiSelect and rangeSelect a week don't work together #30

Wikinaut opened this issue Oct 30, 2015 · 0 comments

Comments

@Wikinaut
Copy link

I wanted to be able to i) select single days by clicking onto ad date, or ii) a whole week by clicking onto the week number, and later to iii) deselect single days from a (as a whole) selected week.

The following is combined from your examples but it does not work as expected, which makes the content of this formal bug issue:

$("#calendar").datepick({
    renderer: $.datepick.weekOfYearRenderer, 
    firstDay: 1,
    showOtherMonths: true,
    rangeSelect: true, 
    onShow: $.datepick.selectWeek,
    multiSelect: 999,
    showTrigger: '#calImg'
    });

So what I basically suggest is also a redesign (improvement) of your datepicker, so that multiple and single dates, and ranges from ... to ... can be selected.

A working library for detecting keycodes is https://github.com/jeresig/jquery.hotkeys - so that Shift-and-left-mouse-click and also Ctrl-and-left-mouse-click actions could be detected and used for selecting (or deselecting) ranges, week, or single days.

If needed, I can write a formal issue with a concrete proposal. With the current version, it's not easy to code for non-experts, but once we have a working example, your extension, which already has a lot of useful option but lacks the described features, will become the best of the multi-date-pickers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant