1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 07:35:29 +02:00

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
This commit is contained in:
Meik Sievertsen 2009-08-20 15:09:28 +00:00
parent 3928e61952
commit 14b11152c6
3 changed files with 3 additions and 3 deletions

View File

@ -258,7 +258,7 @@ function addquote(post_id, username)
*/ */
function mozWrap(txtarea, open, close) 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 selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd; var selEnd = txtarea.selectionEnd;
var scrollTop = txtarea.scrollTop; var scrollTop = txtarea.scrollTop;

View File

@ -308,7 +308,7 @@ function split_lines(text)
*/ */
function mozWrap(txtarea, open, close) 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 selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd; var selEnd = txtarea.selectionEnd;
var scrollTop = txtarea.scrollTop; var scrollTop = txtarea.scrollTop;

View File

@ -261,7 +261,7 @@ function addquote(post_id, username)
*/ */
function mozWrap(txtarea, open, close) 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 selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd; var selEnd = txtarea.selectionEnd;
var scrollTop = txtarea.scrollTop; var scrollTop = txtarea.scrollTop;