mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
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
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user