aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-08-20 15:09:28 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-08-20 15:09:28 +0000
commit14b11152c601b5bbf1029f237808bfeebd4bf23e (patch)
tree101e509b64d588811e878df86faa55493fffe843 /phpBB/adm/style
parent3928e6195266f89017158445ae6cc43da43e975e (diff)
downloadforums-14b11152c601b5bbf1029f237808bfeebd4bf23e.tar
forums-14b11152c601b5bbf1029f237808bfeebd4bf23e.tar.gz
forums-14b11152c601b5bbf1029f237808bfeebd4bf23e.tar.bz2
forums-14b11152c601b5bbf1029f237808bfeebd4bf23e.tar.xz
forums-14b11152c601b5bbf1029f237808bfeebd4bf23e.zip
Fix wrong textLength call in Webkit-based browsers - Bug #25825 - patch by Technocrat
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10038 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/style')
-rw-r--r--phpBB/adm/style/editor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/adm/style/editor.js b/phpBB/adm/style/editor.js
index 8d6df9164a..cd4e75f51f 100644
--- a/phpBB/adm/style/editor.js
+++ b/phpBB/adm/style/editor.js
@@ -258,7 +258,7 @@ function addquote(post_id, username)
*/
function mozWrap(txtarea, open, close)
{
- var selLength = txtarea.textLength;
+ var selLength = (typeof(txtarea.textLength) == 'undefined') ? txtarea.value.length : txtarea.textLength;
var selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd;
var scrollTop = txtarea.scrollTop;