From dce6033d6044a880d0f81b9514ec3ffe11c864ff Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Fri, 25 Aug 2006 12:14:42 +0000 Subject: [PATCH] Fix ) issue --- deployment/serendipity_editor.js | 2 +- serendipity_editor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/serendipity_editor.js b/deployment/serendipity_editor.js index acac0b2b..c41b0828 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 acac0b2b..c41b0828 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, '');