Bug Tracker

Modify

Ticket #3370 (closed feature: fixed)

Opened 5 years ago

Last modified 5 years ago

[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

jquery_validate_ignoretitle.patch Download (2.1 KB) - added by orip 5 years ago.
patch for ignoreTitle implementation + tests

Change History

Changed 5 years ago by orip

patch for ignoreTitle implementation + tests

comment:1 Changed 5 years ago by joern

  • Owner set to joern

comment:2 Changed 5 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [5902], added the ignoreTitle option. Thanks for the patch.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.