parmarmayur9090 / jquery-datepicker

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

Changes to allow selecting date ranges #252

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I did some changes to the code to allow selection of date ranges - 
multi-select using selection of two dates in the same calendar, highlighting 
between the first/latest. 

Great for creating a compact and quick interface where selection of date ranges 
are needed.

I did include source code with comments and a diff + demo. Not extensively 
tested!

Feel free to include if you find it useful.

Original issue reported on code.google.com by qi9xwu...@sneakemail.com on 14 Nov 2010 at 8:59

Attachments:

GoogleCodeExporter commented 8 years ago
how can i put selected dates to input text boxes, from and to?

Original comment by i...@radfactory.co.uk on 21 Mar 2011 at 2:25

GoogleCodeExporter commented 8 years ago
Good question! This is proof-of-concept code, and I don't think it'll work 
without modifications. The inline datepicker can be set up with functions that 
fire on selection of dates, but it has no concept of the state (e.g. first-last 
date selected, deselection etc). The modal datepicker binds to the text fields, 
but assume one datepicker per field. What you need to do is to add script to 
check for 2 selected dates (numSelected == 2), at line ~747, and set up 
hardcoded fields that will receive the two values (this.selectedDates[])

Original comment by qi9xwu...@sneakemail.com on 23 Mar 2011 at 2:28

GoogleCodeExporter commented 8 years ago
Thanks - this looks like it could be useful. I'm don't currently have the time 
to add features to the date picker but if I added it to github would you be 
interested in forking and maintaining a branch?

Original comment by kelvin.l...@gmail.com on 14 Apr 2011 at 7:41

GoogleCodeExporter commented 8 years ago
Please add this :)

Original comment by real.hu...@mrmachine.net on 18 May 2011 at 5:39