* 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:
JensDiemer 2012-08-07 16:44:16 +03:00
parent 18a716d577
commit a6c0eb1ffc
2 changed files with 3 additions and 3 deletions

View file

@ -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'];

View file

@ -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">