mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
additional check for existence of #Form_EditForm
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@42727 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ba3d4ab812
commit
5816ce849f
@ -108,7 +108,7 @@ initialiseCMSIfAForumLoaded = function(){
|
||||
}
|
||||
|
||||
Behaviour.addLoader(function(){
|
||||
if($('Form_EditForm').observeMethod) {
|
||||
if($('Form_EditForm') && $('Form_EditForm').observeMethod) {
|
||||
$('Form_EditForm').observeMethod('PageLoaded', initialiseCMSIfAForumLoaded());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user