aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Woody <a_jelly_doughnut@phpbb.com>2010-02-04 01:04:52 +0000
committerJosh Woody <a_jelly_doughnut@phpbb.com>2010-02-04 01:04:52 +0000
commit8adf583bdf3f8d00bbeab0ac0dbfdd49c58d80cd (patch)
tree0b0facb98b86321ac7e3fd14117178f70217cb65
parent99c608e88c267e0fa7517da196e1701ba163c26a (diff)
downloadforums-8adf583bdf3f8d00bbeab0ac0dbfdd49c58d80cd.tar
forums-8adf583bdf3f8d00bbeab0ac0dbfdd49c58d80cd.tar.gz
forums-8adf583bdf3f8d00bbeab0ac0dbfdd49c58d80cd.tar.bz2
forums-8adf583bdf3f8d00bbeab0ac0dbfdd49c58d80cd.tar.xz
forums-8adf583bdf3f8d00bbeab0ac0dbfdd49c58d80cd.zip
Bug #38765 - Unify BBCode selection across browsers (also needs fixing in subsilver2)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10474 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/styles/subsilver2/template/editor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/subsilver2/template/editor.js b/phpBB/styles/subsilver2/template/editor.js
index b4a426df4e..0c48c93ad3 100644
--- a/phpBB/styles/subsilver2/template/editor.js
+++ b/phpBB/styles/subsilver2/template/editor.js
@@ -276,8 +276,8 @@ function mozWrap(txtarea, open, close)
var s3 = (txtarea.value).substring(selEnd, selLength);
txtarea.value = s1 + open + s2 + close + s3;
- txtarea.selectionStart = selEnd + open.length + close.length;
- txtarea.selectionEnd = txtarea.selectionStart;
+ txtarea.selectionStart = selStart + open.length;
+ txtarea.selectionEnd = selEnd + open.length;
txtarea.focus();
txtarea.scrollTop = scrollTop;