From 3acdeb2441fafc70dd29fe2485311a8ba115f38c Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 19 Nov 2007 01:52:13 +0000 Subject: [PATCH] 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 --- forms/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/Validator.php b/forms/Validator.php index 7a8492c82..81f173cc3 100755 --- a/forms/Validator.php +++ b/forms/Validator.php @@ -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' : {