give OPs IDs
This commit is contained in:
parent
1edaea309b
commit
62b7e02050
|
@ -210,7 +210,7 @@ function citeReply(id, with_link) {
|
||||||
if (typeof $ != 'undefined') {
|
if (typeof $ != 'undefined') {
|
||||||
var select = document.getSelection().toString();
|
var select = document.getSelection().toString();
|
||||||
if (select) {
|
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
|
var index = body.text().indexOf(select.replace('\n', '')); // for some reason this only works like this
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
textarea.value += '>' + select + '\n';
|
textarea.value += '>' + select + '\n';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
{% if not index %}<a id="{{ post.id }}" class="post_anchor"></a>{% endif %}
|
{% if not index %}<a id="{{ post.id }}" class="post_anchor"></a>{% endif %}
|
||||||
|
|
||||||
{% include 'post/fileinfo.html' %}
|
{% 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 }}" />
|
<input type="checkbox" class="delete" name="delete_{{ post.id }}" id="delete_{{ post.id }}" />
|
||||||
<label for="delete_{{ post.id }}">
|
<label for="delete_{{ post.id }}">
|
||||||
{% include 'post/subject.html' %}
|
{% include 'post/subject.html' %}
|
||||||
|
|
Loading…
Reference in New Issue