[svn r21978] FS#2867 - The online editor: Elimination of the try-catch blocks while accessing the object FCKLang that contains translations .

skala
Ivan Tcholakov 17 years ago
parent fb59df30fc
commit eb06a9eb51
  1. 21
      main/inc/lib/fckeditor/editor/filemanager/browser/default/browser.html

@ -64,28 +64,23 @@
})() ;
// Establishing access to FCKLang object for making translations.
var FCKLang = [] ;
if ( window.opener )
{
var FCKLang = [];
try
if ( window.opener.FCKLang )
{
FCKLang = window.opener.FCKLang ;
}
catch ( ex ) { }
}
else
else if ( window.parent )
{
try
if ( typeof ( window.parent.InnerDialogLoaded ) == 'function' )
{
var dialog = window.parent ;
var oEditor = dialog.InnerDialogLoaded() ;
var FCKLang = oEditor.FCKLang ;
if ( window.parent.InnerDialogLoaded().FCKLang )
{
FCKLang = window.parent.InnerDialogLoaded().FCKLang ;
}
}
catch ( ex ) { }
}
if ( !FCKLang )
{
var FCKLang = [] ;
}
// Initialization of some language variables.

Loading…
Cancel
Save