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

This commit is contained in:
Ingo Schommer 2011-12-14 12:41:04 +01:00
parent 020f480256
commit 8d3d71027e

View File

@ -457,11 +457,6 @@ JS;
$validator = new RequiredFields(); $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 = new Form($this, "EditForm", $fields, $actions, $validator);
$form->loadDataFrom($record); $form->loadDataFrom($record);
$stageURLField->setValue(Controller::join_links($record->getStageURLSegment(), '?Stage=stage')); $stageURLField->setValue(Controller::join_links($record->getStageURLSegment(), '?Stage=stage'));