From 207b6ff2bef2eb2d2167e6048099f7d8294eb085 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Wed, 10 Dec 2008 18:17:46 +0100 Subject: [PATCH] [svn r17210] FS#2867 - FCKEditor: Minor change in the customizations plugin to avoid a noticed javascript error. --- .../editor/plugins/customizations/fckplugin.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js index da780ab70b..f30ee357b3 100644 --- a/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js +++ b/main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js @@ -311,7 +311,13 @@ var FCKDialog = ( function() if ( dialog._ParentDialog ) // Nested Dialog. { topDialog = dialog._ParentDialog ; - dialog._ParentDialog.contentWindow.SetEnabled( true ) ; + // Modified by Ivan Tcholakov, caused errors during tests. + //dialog._ParentDialog.contentWindow.SetEnabled( true ) ; + if (dialog._ParentDialog.contentWindow) + { + dialog._ParentDialog.contentWindow.SetEnabled( true ) ; + } + // } else // First Dialog. { @@ -399,4 +405,4 @@ var FCKDialog = ( function() return cover ; } } ; -} )() ; \ No newline at end of file +} )() ;