pauladaniel / calendardateselect

Automatically exported from code.google.com/p/calendardateselect
Other
0 stars 0 forks source link

Calendar does not work when error-validation message is put after calendar input field and before "calendar" image #96

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When you use a validation error message directly behind the input box for
the date, the calendar button does not work anymore. 

The reason for this is the use of $(this).previous() in function
calendar_date_select_output(input, calendar_options = {}).

It is in my opinion better to use $(this).previous('input'), which will
look for the previous input field instead the previous html element, which
would be a <span></span> in case of error validation.

Original issue reported on code.google.com by vann...@gmail.com on 24 Mar 2008 at 9:58

GoogleCodeExporter commented 8 years ago
Great suggestion.  Would you like to fork cds on github and apply the change?

Original comment by timchar...@gmail.com on 18 May 2008 at 3:04

GoogleCodeExporter commented 8 years ago
Fix applied in
http://github.com/xaviershay/calendar_date_select/commit/bee327856a592b85285eed8
0598a52a74788a88a

Original comment by Xavier.S...@gmail.com on 20 May 2008 at 2:09

GoogleCodeExporter commented 8 years ago

Original comment by timchar...@gmail.com on 30 Nov 2008 at 8:28