Bug Tracker

Ticket #2965: image_cancel.patch

File image_cancel.patch, 433 bytes (added by wtgee, 12 years ago)

Patch to add image type submit to 'cancel' feature.

  • jquery.validate.js

    old new  
    3535                if ( validator.settings.onsubmit ) {
    3636               
    3737                        // allow suppresing validation by adding a cancel class to the submit button
    38                         this.find(".cancel:submit").click(function() {
     38                        this.find(".cancel:submit,.cancel:image").click(function() {
    3939                                validator.cancelSubmit = true;
    4040                        });
    4141