Reply to forum thread from LP - refs BT#9892 #TMI

Angel Fernando Quiroz Campos 11 years ago
parent 4b3e5f454f
commit a0de1f5f62
  1. 9
      main/forum/viewthread.php
  2. 9
      main/template/games/forum/flat_learnpath.tpl

@ -186,13 +186,10 @@ if ($my_message != 'PostDeletedSpecial') {
$buttonReplyToThread = Display::toolbarButton(
get_lang('ReplyToThread'),
"{$forumUrl}reply.php?" . api_get_cidreq() . '&' . http_build_query([
'forum' => Security::remove_XSS($_GET['forum']),
'thread' => Security::remove_XSS($_GET['thread']),
'action' => 'replythread',
]),
'#',
'reply',
'default'
'default',
['id' => 'btn-reply-thread']
);
}
// new thread link

@ -31,15 +31,13 @@
};
$(document).on('ready', function() {
$('.btn-reply-post').on('click', function(e) {
$('.btn-reply-post, #btn-reply-thread').on('click', function(e) {
e.preventDefault();
var replyToPost = $(this).data('reply-to') || 0;
if (replyToPost) {
replyForm.parentPostId = parseInt(replyToPost);
replyForm.show();
}
replyForm.parentPostId = parseInt(replyToPost);
replyForm.show();
});
$('body').on('submit', '#form_reply', function(e) {
@ -67,6 +65,7 @@
</div>
<div class="forum-disqus">
<div id="form-reply-to-post-0"></div>
{% for post in posts %}
<div class="post-disqus">
<div class="col-xs-offset-{{ post.indent_cnt }}" data-post="{{ post.post_id }}">

Loading…
Cancel
Save