From b8d5f1640376a341699a4c10c859213013bc5c17 Mon Sep 17 00:00:00 2001 From: Jim Wigginton Date: Sat, 25 Apr 2009 13:56:36 +0000 Subject: [PATCH] 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 --- phpBB/docs/CHANGELOG.html | 1 + phpBB/styles/prosilver/template/forum_fn.js | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index 3e0fc55463..11b60c3bbf 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -150,6 +150,7 @@
  • [Fix] memberlist.php display formating can be distorted by posting long URL for website (Bug #36675 - Patch by TerraFrost)
  • [Fix] queued replies missing from "view new posts" (Bug #42705 - Patch by Paul)
  • [Fix] Display the online status of hidden users to users with the u_viewonline permission when viewing PMs.
  • +
  • [Fix] "Select all" selects much too much in Opera (Bug #42885 - Patch by TerraFrost and ToonArmy)
  • [Change] Default difference view is now 'inline' instead of 'side by side'
  • [Change] Added new option for merging differences to conflicting files in automatic updater
  • [Change] Add link to user profile in the MCP for user notes and warn user.
  • 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) == '
    ') + { + e.innerHTML = e.innerHTML + ' '; + } + var r = document.createRange(); r.selectNodeContents(e); s.removeAllRanges();