parmarmayur9090 / jquery-datepicker

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

setSelected doesn't call setDisplayedMonth if ONLY the Year has changed. #190

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
  call dpSetSelected on a datepicker with a date in which only the year has   
changed.

What is the expected output? What do you see instead?
  The datepicker should display the newly selected year, It doesn't.

What version of the datepicker are you using? On what operating system? And 
Which Browser?

Latest version, windows, iron, mozilla, opera.

Please provide any additional information below.

I believe the error is corrected by changing line 651 to
if (moveToMonth && (this.displayedMonth != d.getMonth() || 
this.displayedYear !=d.getFullYear())) {

corrects the problem.

Original issue reported on code.google.com by keithwh...@gmail.com on 1 Apr 2010 at 1:47