diff options
| author | Hari Sankar R <hsr@theinglorio.us> | 2012-04-01 18:25:50 +0530 |
|---|---|---|
| committer | Hari Sankar R <hsr@theinglorio.us> | 2012-04-01 18:25:50 +0530 |
| commit | e7cf4bfb2ed2b549e567c7237df799b6af0977ae (patch) | |
| tree | c70903afb28c1814943be8a58722639ef0ddc970 | |
| parent | 40c37fb86716a4d3663d17a2c404e7c034e0b277 (diff) | |
| download | forums-e7cf4bfb2ed2b549e567c7237df799b6af0977ae.tar forums-e7cf4bfb2ed2b549e567c7237df799b6af0977ae.tar.gz forums-e7cf4bfb2ed2b549e567c7237df799b6af0977ae.tar.bz2 forums-e7cf4bfb2ed2b549e567c7237df799b6af0977ae.tar.xz forums-e7cf4bfb2ed2b549e567c7237df799b6af0977ae.zip | |
[ticket/10731] Fixed addquote() to work on opera browser.
In opera, window.getSelection() returned incorrect values, should be using
document.getSelection() instead. Fixed in prosilver and subsilver2 templates.
PHPBB3-10731
| -rw-r--r-- | phpBB/styles/prosilver/template/editor.js | 2 | ||||
| -rw-r--r-- | phpBB/styles/subsilver2/template/editor.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/prosilver/template/editor.js b/phpBB/styles/prosilver/template/editor.js index 2c41b543b5..c16b0ef703 100644 --- a/phpBB/styles/prosilver/template/editor.js +++ b/phpBB/styles/prosilver/template/editor.js @@ -219,7 +219,7 @@ function addquote(post_id, username, l_wrote) // Get text selection - not only the post content :( // IE9 must use the document.selection method but has the *.getSelection so we just force no IE - if (window.getSelection && !is_ie) + if (window.getSelection && !is_ie && !window.opera) { theSelection = window.getSelection().toString(); } diff --git a/phpBB/styles/subsilver2/template/editor.js b/phpBB/styles/subsilver2/template/editor.js index b47583ec75..151cf53ff1 100644 --- a/phpBB/styles/subsilver2/template/editor.js +++ b/phpBB/styles/subsilver2/template/editor.js @@ -221,7 +221,7 @@ function addquote(post_id, username, l_wrote) // Get text selection - not only the post content :( // IE9 must use the document.selection method but has the *.getSelection so we just force no IE - if (window.getSelection && !is_ie) + if (window.getSelection && !is_ie && !window.opera) { theSelection = window.getSelection().toString(); } |
