mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Suppress inline JS validation scripts in CMS (they don't work with ajax-loaded content)
This commit is contained in:
parent
0dd32baf1e
commit
a17e1c21c2
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user