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:
Ingo Schommer 2007-09-27 20:49:03 +00:00
parent ba3d4ab812
commit 5816ce849f

View File

@ -108,7 +108,7 @@ initialiseCMSIfAForumLoaded = function(){
}
Behaviour.addLoader(function(){
if($('Form_EditForm').observeMethod) {
if($('Form_EditForm') && $('Form_EditForm').observeMethod) {
$('Form_EditForm').observeMethod('PageLoaded', initialiseCMSIfAForumLoaded());
}