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

View File

@ -133,6 +133,9 @@ class LeftAndMain extends Controller {
* @uses CMSMenu * @uses CMSMenu
*/ */
function init() { function init() {
// Suppress behaviour/prototype validation instructions in CMS, not compatible with ajax loading of forms.
Validator::set_javascript_validation_handler('none');
parent::init(); parent::init();
SSViewer::setOption('rewriteHashlinks', false); SSViewer::setOption('rewriteHashlinks', false);
@ -188,6 +191,12 @@ class LeftAndMain extends Controller {
// Requirements // 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( Requirements::combine_files(
'lib.js', 'lib.js',
array( array(