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
|
* @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(
|
||||||
|
Loading…
Reference in New Issue
Block a user