* Bugfix: if selection used. * Copy&Paste only the post body and not "meta" lines
--- djangobb_forum/static/djangobb_forum/js/markup/bbcode/board.js | 4 ++-- djangobb_forum/templates/djangobb_forum/topic.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
This commit is contained in:
parent
18a716d577
commit
a6c0eb1ffc
2 changed files with 3 additions and 3 deletions
|
@ -21,9 +21,9 @@ function copy_paste(post_id) {
|
|||
if (txt == '') {
|
||||
// quote the complete post content
|
||||
// FIXME: We should get the markup here (Ajax view?)
|
||||
txt = post_div.find("div.postmsg").text();
|
||||
txt = post_div.find("p.post_body_html").text();
|
||||
txt = $.trim(txt);
|
||||
}
|
||||
txt = $.trim(txt);
|
||||
txt = '[quote=' + nick + ']' + txt + '[/quote]\n';
|
||||
//textarea = $("#id_body");
|
||||
textarea = document.forms['post']['body'];
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
<div class="postright">
|
||||
<h3>{{ post.topic.name }}</h3>
|
||||
<div class="postmsg">
|
||||
{{ post.body_html|safe }}
|
||||
<p class="post_body_html">{{ post.body_html|safe }}</p>
|
||||
{% if not user.is_authenticated or user.forum_profile.show_signatures %}
|
||||
{% if post.user.forum_profile.signature_html %}
|
||||
<div class="postsignature">
|
||||
|
|
Reference in a new issue