From ac5b7a578fd9650f5c724c8c0415a29621aa9fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Dr=C3=B6scher?= Date: Thu, 7 Dec 2006 17:11:37 +0000 Subject: [PATCH] oopsie git-svn-id: file:///svn/phpbb/trunk@6727 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/styles/subSilver/template/editor.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/phpBB/styles/subSilver/template/editor.js b/phpBB/styles/subSilver/template/editor.js index c6542aac89..60c1b30013 100644 --- a/phpBB/styles/subSilver/template/editor.js +++ b/phpBB/styles/subSilver/template/editor.js @@ -19,7 +19,7 @@ var is_win = ((clientPC.indexOf('win') != -1) || (clientPC.indexOf('16bit') != - var is_mac = (clientPC.indexOf('mac') != -1); var baseHeight; -window.onload = initInsertions; +window.onload = initInsertions(); /** * Shows the help messages in the helpline window @@ -73,10 +73,13 @@ function arraypop(thearray) */ function initInsertions() { - document.post.message.focus(); - if (is_ie && typeof(baseHeight) != 'number') + if(is_ie) { - baseHeight = document.selection.createRange().duplicate().boundingHeight; + document.post.message.focus(); + if (is_ie && typeof(baseHeight) != 'number') + { + baseHeight = document.selection.createRange().duplicate().boundingHeight; + } } }