diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index 9b8e203e36..cffea752ff 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -52,7 +52,7 @@ -
  • +
  • @@ -415,9 +415,11 @@ jQuery(div + ' .quote').click(function() { if (thread_state.locked !== '1') app.open_post_window('quote', "{topic_id}", "{topic_name}"); + + var pid = $(this).parents('li').attr('data-pid'); + + $('#post_content').val('> ' + $('#content_' + pid).html() + '\n'); - // this needs to be looked at, obviously. only single line quotes work well I think maybe replace all \r\n with > ? - document.getElementById('post_content').innerHTML = '> ' + document.getElementById('content_' + this.id.replace('quote_', '')).innerHTML; }); jQuery(div + ' .edit, ' + div + ' .delete').each(function() {