Permalink
Browse files

MINOR Remove JavaScript validation handler from CMS, it doesn't work …

…with ajax
  • Loading branch information...
1 parent 020f480 commit 8d3d71027ec8007135a209b8d59278a5b30dbdd8 @chillu chillu committed Dec 14, 2011
Showing with 0 additions and 5 deletions.
  1. +0 −5 code/controllers/CMSMain.php
@@ -457,11 +457,6 @@ public function getEditForm($id = null, $fields = null) {
$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'));

0 comments on commit 8d3d710

Please sign in to comment.