summaryrefslogtreecommitdiff
path: root/templates/main.js
diff options
context:
space:
mode:
authorBui <bui@bui.pm>2014-09-30 15:24:12 +0900
committerczaks <marcin@6irc.net>2014-10-05 17:49:31 +0200
commit62b7e02050be1c9c9e561aea360da191177f344f (patch)
tree2628d05c1380e520087f178d6f49bdca127bf766 /templates/main.js
parent1edaea309b115bbbd17ab121f719cc9bba191c3e (diff)
give OPs IDs
Diffstat (limited to 'templates/main.js')
-rw-r--r--templates/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/main.js b/templates/main.js
index 960aac86..52f38e69 100644
--- a/templates/main.js
+++ b/templates/main.js
@@ -210,7 +210,7 @@ function citeReply(id, with_link) {
if (typeof $ != 'undefined') {
var select = document.getSelection().toString();
if (select) {
- var body = $('#reply_' + id).find('div.body'); // TODO: support for OPs
+ var body = $('#reply_' + id + ', #op_' + id).find('div.body'); // TODO: support for OPs
var index = body.text().indexOf(select.replace('\n', '')); // for some reason this only works like this
if (index > -1) {
textarea.value += '>' + select + '\n';