MINOR Suppress inline JS validation scripts in CMS (they don't work with ajax-loaded content)

This commit is contained in:
Ingo Schommer 2011-12-12 23:41:49 +01:00
parent 0dd32baf1e
commit a17e1c21c2
1 changed files with 9 additions and 0 deletions

View File

@ -133,6 +133,9 @@ class LeftAndMain extends Controller {
* @uses CMSMenu
*/
function init() {
// Suppress behaviour/prototype validation instructions in CMS, not compatible with ajax loading of forms.
Validator::set_javascript_validation_handler('none');
parent::init();
SSViewer::setOption('rewriteHashlinks', false);
@ -187,6 +190,12 @@ class LeftAndMain extends Controller {
if(empty($_REQUEST['executeForm']) && !$this->isAjax()) $this->extend('accessedCMS');
// Requirements
// Suppress behaviour/prototype validation instructions in CMS, not compatible with ajax loading of forms.
Validator::set_javascript_validation_handler('none');
// Set the members html editor config
HtmlEditorConfig::set_active(Member::currentUser()->getHtmlEditorConfigForCMS());
Requirements::combine_files(
'lib.js',