Bug Tracker

Opened 14 years ago

Closed 14 years ago

#3370 closed feature (fixed)

[validate] add 'ignoreTitle' option

Reported by: orip Owned by: joern
Priority: minor Milestone:
Component: plugin Version:
Keywords: validate Cc:
Blocked by: Blocking:


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 (1)

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

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by orip

patch for ignoreTitle implementation + tests

comment:1 Changed 14 years ago by joern

Owner: set to joern

comment:2 Changed 14 years ago by joern

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.