aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-12 11:52:18 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-12 11:52:18 +0200
commitd92baaa2f72400c9814f9e0a5638532e549a9446 (patch)
tree5cc10089886b2a845d460993cfd01b1736c43eec /phpBB/styles
parentbc34217c1476170254e6e1f0209b33e5f167cc33 (diff)
parent3cdf97f0030d79f5dc77b1136d820c9069213f35 (diff)
downloadforums-d92baaa2f72400c9814f9e0a5638532e549a9446.tar
forums-d92baaa2f72400c9814f9e0a5638532e549a9446.tar.gz
forums-d92baaa2f72400c9814f9e0a5638532e549a9446.tar.bz2
forums-d92baaa2f72400c9814f9e0a5638532e549a9446.tar.xz
forums-d92baaa2f72400c9814f9e0a5638532e549a9446.zip
Merge pull request #3908 from marc1706/ticket/14163
[ticket/14163] Properly fix select all for code tag in Edge * marc1706/ticket/14163: [ticket/14163] Properly fix select all for code tag in Edge
Diffstat (limited to 'phpBB/styles')
-rw-r--r--phpBB/styles/prosilver/template/forum_fn.js5
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 8e5b257ba4..99f3108fad 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