parents-merge 36165 - Added javascript option Form.bypassValidation, which can be set to true in a button's onclick handler

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@45055 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2007-11-19 01:52:13 +00:00
parent 98fdd637ad
commit 3acdeb2441

View File

@ -82,7 +82,7 @@ Behaviour.register({
return !error;
},
onsubmit : function() {
return this.validate();
if(typeof this.bypassValidation == 'undefined' || !this.bypassValidation) return this.validate();
}
},
'#$formID input' : {