overset / jquery-jcal

Automatically exported from code.google.com/p/jquery-jcal
1 stars 0 forks source link

Problem on selection between differents month #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
-------------------------------
1. Create a calendar with at least 2 month
2. set a selecttion range of 5 days
3. click on the last day of the month of the last calendar visible
4. change to the next month and you will notice that the range of 
5. selection will change to 1 and the other 4 days will be lost.

What is the expected output? What do you see instead?
-------------------------------
it should not change the selection to 1 day even if the whole selection is not 
inside the visible months

The way to fix it:
-------------------------------
in the click function add a line:

if(e.type == 'click') {
    di = ds // ADD THIS LINE or Change "di" by "ds"
    e.data.day = osDate;                        
    e.data.callback( osDate, di );
    $(e.data._target).data('day', e.data.day).data('days', di);
}

Original issue reported on code.google.com by Hans.Lan...@gmail.com on 1 Jul 2013 at 12:39