diff options
author | Jim Wigginton <terrafrost@phpbb.com> | 2009-04-25 13:56:36 +0000 |
---|---|---|
committer | Jim Wigginton <terrafrost@phpbb.com> | 2009-04-25 13:56:36 +0000 |
commit | b8d5f1640376a341699a4c10c859213013bc5c17 (patch) | |
tree | 21921009efb6addb56a6eebc0ce3187bc4a10bba /phpBB/styles | |
parent | 6816cf292feb5b2b922efeba697b7b3f46dd25e2 (diff) | |
download | forums-b8d5f1640376a341699a4c10c859213013bc5c17.tar forums-b8d5f1640376a341699a4c10c859213013bc5c17.tar.gz forums-b8d5f1640376a341699a4c10c859213013bc5c17.tar.bz2 forums-b8d5f1640376a341699a4c10c859213013bc5c17.tar.xz forums-b8d5f1640376a341699a4c10c859213013bc5c17.zip |
Fixed bug # 42885 - "Select all" selects much too much in Opera
Authorised by: acydburn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9485 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/styles')
-rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 06c4d1e785..c1b86bd064 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -207,6 +207,12 @@ function selectCode(a) // Firefox and Opera else { + // workaround for bug # 42885 + if (window.opera && e.innerHTML.substring(e.innerHTML.length - 4) == '<BR>') + { + e.innerHTML = e.innerHTML + ' '; + } + var r = document.createRange(); r.selectNodeContents(e); s.removeAllRanges(); |