@ -34,13 +34,14 @@ if (isset($_GET['img'])) {
if ( !window.opener & & window.parent )
if ( !window.opener & & window.parent )
{
{
// The image editor is inside a dialog.
// The image editor is inside a dialog.
window.parent.SetAutoSize( true ) ;
oEditor = window.parent.InnerDialogLoaded() ;
oEditor = window.parent.InnerDialogLoaded() ;
}
}
var _editor_lang = 'en' ;
var _editor_lang = 'en' ;
if(window.opener)
if(window.opener)
{
{
window.resizeTo(673, 531 );
window.resizeTo(702, 600 );
if (window.opener.I18N)
if (window.opener.I18N)
{
{
@ -57,6 +58,14 @@ if (isset($_GET['img'])) {
_editor_lang = window.opener._editor_lang ;
_editor_lang = window.opener._editor_lang ;
}
}
}
}
else if ( window.parent )
{
_editor_lang = oEditor._editor_lang ;
if ( oEditor.ImageManager & & oEditor.ImageManager.I18N )
{
I18N = oEditor.ImageManager.I18N ;
}
}
// language object not found?
// language object not found?
if (!this.I18N)
if (!this.I18N)