Ticket #3370 (closed feature: fixed)
[validate] add 'ignoreTitle' option
| Reported by: | orip | Owned by: | joern |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | plugin | Version: | |
| Keywords: | validate | Cc: | |
| Blocking: | Blocked by: |
Description
We use the jQuery Validation plugin, and to define standard error messages for all our forms we update $.validator.messages with our own error messages.
This works great except for the Google Toolbar problem - when the Google Toolbar sets a title for input elements the plugin prefers them over our default messages.
We don't want to specify messages for every input field, and the title overrides our defaults, so we added an 'ignoreTitle' flag to the options (default is false).
Attached are the implementation and tests (one for using the 'title' when it's false, the other for not using when it's true). I hope you like it.
Attachments
Change History
Changed 5 years ago by orip
-
attachment
jquery_validate_ignoretitle.patch
added
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

patch for ignoreTitle implementation + tests