From 78105f62efc3e957f481681573f06790c427b4b6 Mon Sep 17 00:00:00 2001 From: Zambom Date: Thu, 27 Oct 2016 22:27:41 -0300 Subject: [PATCH] Fixing errors [Issue: #215] --- forum/static/js/forum.js | 4 ++-- forum/templates/forum/forum_form.html | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/forum/static/js/forum.js b/forum/static/js/forum.js index 2477bbe..ac0c95a 100644 --- a/forum/static/js/forum.js +++ b/forum/static/js/forum.js @@ -182,7 +182,7 @@ function edit_post(url, post_id, success_message) { success: function (data) { alertify.success(success_message); - $("#post_"+post_id).parent().after(data); + $("#post_"+post_id).parent().after(data.html); frm.parent().parent().remove(); }, error: function(data) { @@ -344,7 +344,7 @@ function edit_post_answer(url, answer_id, success_message) { success: function (data) { alertify.success(success_message); - $("#answer_"+answer_id).parent().after(data); + $("#answer_"+answer_id).parent().after(data.html); frm.parent().parent().remove(); }, error: function(data) { diff --git a/forum/templates/forum/forum_form.html b/forum/templates/forum/forum_form.html index ed6abc3..e11791f 100644 --- a/forum/templates/forum/forum_form.html +++ b/forum/templates/forum/forum_form.html @@ -8,6 +8,7 @@ {% if field.field.widget.input_type == 'hidden' %} {% render_field field class='form-control' %} {% elif field.auto_id == 'id_limit_date' %} + {{ field.help_text }} {% else %} -- libgit2 0.21.2