diff options
| author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-10-12 11:52:18 +0200 | 
|---|---|---|
| committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2015-10-12 11:52:18 +0200 | 
| commit | 7bbce946de68e52d93f2c2050c507817ec4483c5 (patch) | |
| tree | 37b267f6ac0ecf7bf0eda34044fb8562268c6d93 | |
| parent | 17dbe4c17aa730c489bf828873608564d529c45c (diff) | |
| parent | d92baaa2f72400c9814f9e0a5638532e549a9446 (diff) | |
| download | forums-7bbce946de68e52d93f2c2050c507817ec4483c5.tar forums-7bbce946de68e52d93f2c2050c507817ec4483c5.tar.gz forums-7bbce946de68e52d93f2c2050c507817ec4483c5.tar.bz2 forums-7bbce946de68e52d93f2c2050c507817ec4483c5.tar.xz forums-7bbce946de68e52d93f2c2050c507817ec4483c5.zip | |
Merge branch '3.1.x'
* 3.1.x:
  [ticket/14163] Properly fix select all for code tag in Edge
| -rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index c6f13df5c2..b803a6f5c8 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -159,7 +159,10 @@ function selectCode(a) {  			try {  				s.setBaseAndExtent(e, 0, e, l);  			} catch (error) { -				s.setBaseAndExtent(e, 0, e, 1); +				r = document.createRange(); +				r.selectNodeContents(e); +				s.removeAllRanges(); +				s.addRange(r);  			}  		}  		// Firefox and Opera | 
