Changeset 1603


Ignore:
Timestamp:
2010-07-09 12:23:28 (3 years ago)
Author:
freya
Message:

add an extra handler on the form: prevalidation. this one is called before validation is done and data is gathered (via getwirevalue). (presubmit handler is done after validation and data gathering)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-forms/kauri-forms-framework/src/main/kauri/static-{build}.key/kauri.forms/form.js

    r1597 r1603  
    110110 
    111111    Form.prototype.initEvents = function() { 
     112        this._makeEventHandler("prevalidation"); 
    112113        this._makeEventHandler("presubmit"); 
    113114    } 
     
    226227        if (saveMode == undefined) saveMode = true; 
    227228        if (allowInvalid == undefined) allowInvalid = false; 
     229         
     230        $(this).triggerHandler("prevalidation"); 
    228231         
    229232        var proceed = this.preSubmitValidationCheck(allowInvalid); 
Note: See TracChangeset for help on using the changeset viewer.