diff options
author | Dominik Dröscher <dhn2@users.sourceforge.net> | 2006-11-21 06:39:50 +0000 |
---|---|---|
committer | Dominik Dröscher <dhn2@users.sourceforge.net> | 2006-11-21 06:39:50 +0000 |
commit | 3a85729945fee97f70d50f364fcfa1daf0e512fe (patch) | |
tree | efa391b1ddc66f83164c2eb91ca4c424eb07695a | |
parent | 2c8cae52262c2124bccaa40d31e2aaf75a65e9e6 (diff) | |
download | forums-3a85729945fee97f70d50f364fcfa1daf0e512fe.tar forums-3a85729945fee97f70d50f364fcfa1daf0e512fe.tar.gz forums-3a85729945fee97f70d50f364fcfa1daf0e512fe.tar.bz2 forums-3a85729945fee97f70d50f364fcfa1daf0e512fe.tar.xz forums-3a85729945fee97f70d50f364fcfa1daf0e512fe.zip |
insert_text now working properly in IE for smilies again
git-svn-id: file:///svn/phpbb/trunk@6624 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/styles/subSilver/template/editor.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/styles/subSilver/template/editor.js b/phpBB/styles/subSilver/template/editor.js index 5ce917d1b2..dcf9d2c2bb 100644 --- a/phpBB/styles/subSilver/template/editor.js +++ b/phpBB/styles/subSilver/template/editor.js @@ -134,7 +134,7 @@ function insert_text(text, spaces, popup) { text = ' ' + text + ' '; } - if (textarea.createTextRange && !isNaN(textarea.caretPos)) + if (textarea.createTextRange && textarea.caretPos) { var caret_pos = textarea.caretPos; caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ' ' ? caret_pos.text + text + ' ' : caret_pos.text + text; |