aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Dröscher <dhn2@users.sourceforge.net>2006-12-07 17:11:37 +0000
committerDominik Dröscher <dhn2@users.sourceforge.net>2006-12-07 17:11:37 +0000
commitac5b7a578fd9650f5c724c8c0415a29621aa9fc0 (patch)
treec0bac8e51a92ac53862bb0e8c52d6560547acb9c
parent3886559e8331f59c9633a0ec9c915b1e1e84db12 (diff)
downloadforums-ac5b7a578fd9650f5c724c8c0415a29621aa9fc0.tar
forums-ac5b7a578fd9650f5c724c8c0415a29621aa9fc0.tar.gz
forums-ac5b7a578fd9650f5c724c8c0415a29621aa9fc0.tar.bz2
forums-ac5b7a578fd9650f5c724c8c0415a29621aa9fc0.tar.xz
forums-ac5b7a578fd9650f5c724c8c0415a29621aa9fc0.zip
oopsie
git-svn-id: file:///svn/phpbb/trunk@6727 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/styles/subSilver/template/editor.js11
1 files 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;
+ }
}
}