Skip to content

Not all options are passed to jquery-validation #175

Open
@lukos

Description

@lukos

Where the options object is created, not all options are passed down to jquery-validation, which means some things are not overridable. The three that I have added manually are ignore, highlight and unhighlight. Should be easy enough to add them (not sure if there is a reason why all options are not available for override):

options: {  // options structure passed to jQuery Validate's validate() method
	ignore: defaultOptions.ignore,
	errorClass: defaultOptions.errorClass || "input-validation-error",
	errorElement: defaultOptions.errorElement || "span",
	errorPlacement: function () {
		onError.apply(form, arguments);
		execInContext("errorPlacement", arguments);
	},
	invalidHandler: function () {
		onErrors.apply(form, arguments);
		execInContext("invalidHandler", arguments);
	},
	messages: {},
	rules: {},
	success: function () {
		onSuccess.apply(form, arguments);
		execInContext("success", arguments);
	},
	highlight: defaultOptions.highlight,
	unhighlight: defaultOptions.unhighlight
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions