From: garvinhicking Date: Fri, 25 Aug 2006 12:14:42 +0000 (+0000) Subject: Fix ) issue X-Git-Tag: 1.1~105 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=92578f6682b7ae48c5970bce659618741e188c0a;p=s9y.git Fix ) issue --- diff --git a/deployment/serendipity_editor.js b/deployment/serendipity_editor.js index acac0b2..c41b082 100644 --- a/deployment/serendipity_editor.js +++ b/deployment/serendipity_editor.js @@ -288,7 +288,7 @@ function serendipity_imageSelector_done(textarea) block = insert; } - if (typeof(parent.self.opener.htmlarea_editors) != 'undefined' && typeof(parent.self.opener.htmlarea_editors[textarea] != 'undefined')) { + if (typeof(parent.self.opener.htmlarea_editors) != 'undefined' && typeof(parent.self.opener.htmlarea_editors[textarea]) != 'undefined') { parent.self.opener.htmlarea_editors[textarea].surroundHTML(block, ''); } else if (parent.self.opener.editorref) { parent.self.opener.editorref.surroundHTML(block, ''); diff --git a/serendipity_editor.js b/serendipity_editor.js index acac0b2..c41b082 100644 --- a/serendipity_editor.js +++ b/serendipity_editor.js @@ -288,7 +288,7 @@ function serendipity_imageSelector_done(textarea) block = insert; } - if (typeof(parent.self.opener.htmlarea_editors) != 'undefined' && typeof(parent.self.opener.htmlarea_editors[textarea] != 'undefined')) { + if (typeof(parent.self.opener.htmlarea_editors) != 'undefined' && typeof(parent.self.opener.htmlarea_editors[textarea]) != 'undefined') { parent.self.opener.htmlarea_editors[textarea].surroundHTML(block, ''); } else if (parent.self.opener.editorref) { parent.self.opener.editorref.surroundHTML(block, '');