asmaoui / jquery-datepicker

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

Add a new option to display a link on the datePicker to jump to today #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A new option should be added to the date picker which allows the user to
jump the calendar to today. This will help reorientate users who have
clicked through lots of months/ years.

[ http://plugins.jquery.com/node/318 ]

Original issue reported on code.google.com by kelvin.l...@gmail.com on 12 Dec 2008 at 10:49

GoogleCodeExporter commented 9 years ago
Hi Kelvin.

First of all your script is really awsome, I have made some changes in js file 
according to my need, only one issue I am facing that is I am not able to put 
button 
for Todays date, is there any way to solve this problem?

I am attaching the file also which includes arabic localization.

Your help really Appreciated.

Regards
Kaleem Ahmad

Original comment by safk...@gmail.com on 25 Jan 2010 at 10:58

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, I have used Dim's code (one with Month and Year select box) and added Link 
for 
TODAY. It works nice for me.

You can find the file in attachement and try it.

There is one thing i would like to ask you Kelvin. 
If you take a look at the example that i have attached 
and choose in the first field - 1st of this month,
(second field gets cleared) - and then in the second choose any day you want.
Now go back to the first and choose lets say one day before or after current 
selection. (second field gets cleared) 
And now you can choose any day in the second field except the one that you have 
chosen previosly (red one)!
How can i tottaly clear the second field (datepicker), and also be given an 
option 
to choose same date again in that second field.
Thanks in advance.

Ilija

Original comment by ilija.ja...@gmail.com on 1 Mar 2010 at 2:14

Attachments:

GoogleCodeExporter commented 9 years ago
I found the problem for this issue, i will post clear file later today.

Original comment by ilija.ja...@gmail.com on 1 Mar 2010 at 2:56

GoogleCodeExporter commented 9 years ago
I have added a link for today. On click following is invoked

var dateObj = new Date();
datePickerRef.dpSetDisplayedMonth(0, 2000);
datePickerRef.dpSetDisplayedMonth(dateObj.getMonth(), dateObj.getFullYear());

However there is one issue with this. If i select any date and then click 
today, i am
not able to again click on the previously selected date. Function bount using
'dateSelected' does not work

Original comment by singh.kr...@gmail.com on 3 Mar 2010 at 9:01