summaryrefslogtreecommitdiff
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
parent1edaea309b115bbbd17ab121f719cc9bba191c3e (diff)
give OPs IDs
-rw-r--r--templates/main.js2
-rw-r--r--templates/post_thread.html2
2 files changed, 2 insertions, 2 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';
diff --git a/templates/post_thread.html b/templates/post_thread.html
index aa0f1f78..08b4c4c1 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -5,7 +5,7 @@
{% if not index %}<a id="{{ post.id }}" class="post_anchor"></a>{% endif %}
{% include 'post/fileinfo.html' %}
-<div class="post op" {%if post.num_files > 1%}style='clear:both'{%endif%}><p class="intro">
+<div class="post op" id="op_{{ post.id }}" {%if post.num_files > 1%}style='clear:both'{%endif%}><p class="intro">
<input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />
<label for="delete_{{ post.id }}">
{% include 'post/subject.html' %}