Bug Tracker

Modify

Ticket #2989 (closed enhancement: fixed)

Opened 5 years ago

Last modified 15 months ago

[validate] Turning off validation on back, cancel button

Reported by: magleahy Owned by: joern
Priority: major Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: validation off back cancel Cc: mag@…
Blocking: Blocked by:

Description

The requirement would be to be able to press a back or cancel button or input and for validation to be turned off/ignored/diasabled.

At the moment the code does this for input type="submit" but I need it to work for input type="image".

Attachments

jquery.validate.min.js Download (24.8 KB) - added by magleahy 5 years ago.
This is the jquery validation file with code changed from: this.find(".cancel:submit").click(function() { to: this.find(".cancel").click(function() { so that the cancel class turns off validation for both input type="submit" and input type="image"

Change History

Changed 5 years ago by magleahy

This is the jquery validation file with code changed from: this.find(".cancel:submit").click(function() { to: this.find(".cancel").click(function() { so that the cancel class turns off validation for both input type="submit" and input type="image"

comment:1 Changed 5 years ago by joern

  • need changed from Review to Test Case
  • Owner set to joern
  • Type changed from bug to enhancement

One possible selector would be find("input, button").filter(".cancel"), avoiding the pure class-selector.

comment:2 Changed 5 years ago by joern

  • Summary changed from jQuery validate: Turning off validation on back, cancel button to [validate] Turning off validation on back, cancel button

comment:3 Changed 5 years ago by joern

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

Fixed in [5762].

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.