diff options
author | Hari Sankar R <hsr@theinglorio.us> | 2012-04-01 18:25:50 +0530 |
---|---|---|
committer | Vjacheslav Trushkin <arty@phpbb.com> | 2012-04-01 17:05:31 +0300 |
commit | b1b530f92cca7eb115e096ea8901133d421771d2 (patch) | |
tree | 59d783b05d8edc33c191a8885ac71e4e36facf39 /phpBB/styles/subsilver2 | |
parent | 3477b5e5a8c419f28d477a4764f5d29f3b04dc79 (diff) | |
download | forums-b1b530f92cca7eb115e096ea8901133d421771d2.tar forums-b1b530f92cca7eb115e096ea8901133d421771d2.tar.gz forums-b1b530f92cca7eb115e096ea8901133d421771d2.tar.bz2 forums-b1b530f92cca7eb115e096ea8901133d421771d2.tar.xz forums-b1b530f92cca7eb115e096ea8901133d421771d2.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
Diffstat (limited to 'phpBB/styles/subsilver2')
-rw-r--r-- | phpBB/styles/subsilver2/template/editor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/styles/subsilver2/template/editor.js b/phpBB/styles/subsilver2/template/editor.js index 7cc5de9034..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(); } @@ -459,4 +459,4 @@ function getCaretPosition(txtarea) } return caretPos; -}
\ No newline at end of file +} |