From 8d3d71027ec8007135a209b8d59278a5b30dbdd8 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 14 Dec 2011 12:41:04 +0100 Subject: [PATCH] MINOR Remove JavaScript validation handler from CMS, it doesn't work with ajax --- code/controllers/CMSMain.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 7851f0cc..fd4cb94a 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -457,11 +457,6 @@ JS; $validator = new RequiredFields(); } - // The clientside (mainly LeftAndMain*.js) rely on ajax responses - // which can be evaluated as javascript, hence we need - // to override any global changes to the validation handler. - $validator->setJavascriptValidationHandler('prototype'); - $form = new Form($this, "EditForm", $fields, $actions, $validator); $form->loadDataFrom($record); $stageURLField->setValue(Controller::join_links($record->getStageURLSegment(), '?Stage=stage'));