diff options
author | Dominik Dröscher <dhn2@users.sourceforge.net> | 2006-12-07 17:35:26 +0000 |
---|---|---|
committer | Dominik Dröscher <dhn2@users.sourceforge.net> | 2006-12-07 17:35:26 +0000 |
commit | dddffa234796608a167b2e6804baf6359633562c (patch) | |
tree | 4ce678fe2f62d0a4c621076bd627e7ea8afcf793 /phpBB | |
parent | ac5b7a578fd9650f5c724c8c0415a29621aa9fc0 (diff) | |
download | forums-dddffa234796608a167b2e6804baf6359633562c.tar forums-dddffa234796608a167b2e6804baf6359633562c.tar.gz forums-dddffa234796608a167b2e6804baf6359633562c.tar.bz2 forums-dddffa234796608a167b2e6804baf6359633562c.tar.xz forums-dddffa234796608a167b2e6804baf6359633562c.zip |
Blah, so obvious
git-svn-id: file:///svn/phpbb/trunk@6728 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/styles/subSilver/template/editor.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/phpBB/styles/subSilver/template/editor.js b/phpBB/styles/subSilver/template/editor.js index 60c1b30013..dfd992974d 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,13 +73,11 @@ function arraypop(thearray) */ function initInsertions() { - if(is_ie) + var textarea = document.forms[form_name].elements[text_name]; + textarea.focus(); + if (is_ie && typeof(baseHeight) != 'number') { - document.post.message.focus(); - if (is_ie && typeof(baseHeight) != 'number') - { - baseHeight = document.selection.createRange().duplicate().boundingHeight; - } + baseHeight = document.selection.createRange().duplicate().boundingHeight; } } |