Side navigation
#2989 closed enhancement (fixed)
Opened June 05, 2008 12:44PM UTC
Closed July 03, 2008 11:47AM UTC
Last modified April 17, 2014 03:21PM UTC
[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@magleahy.com |
Blocked by: | Blocking: |
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 (1)
Change History (5)
Changed June 05, 2008 01:02PM UTC by comment:1
need: | Review → Test Case |
---|---|
owner: | → joern |
type: | bug → enhancement |
Changed June 09, 2008 09:32PM UTC by comment:2
summary: | jQuery validate: Turning off validation on back, cancel button → [validate] Turning off validation on back, cancel button |
---|
Changed July 03, 2008 11:47AM UTC by comment:3
resolution: | → fixed |
---|---|
status: | new → closed |
Fixed in [5762].
Changed April 17, 2014 09:43AM UTC by comment:4
Hi there,
found this thread today. To realize a back-button with class="back" I added this code to jquery.validate.js at line 28:
if ($(event.target).hasClass("back")) {
validator.cancelSubmit = true;
history.back();
return false;
}
Changed April 17, 2014 03:21PM UTC by comment:5
Thanks. Awesome.
One possible selector would be find("input, button").filter(".cancel"), avoiding the pure class-selector.