Commit 78105f62efc3e957f481681573f06790c427b4b6
1 parent
240cf603
Exists in
master
and in
5 other branches
Fixing errors [Issue: #215]
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
forum/static/js/forum.js
... | ... | @@ -182,7 +182,7 @@ function edit_post(url, post_id, success_message) { |
182 | 182 | success: function (data) { |
183 | 183 | alertify.success(success_message); |
184 | 184 | |
185 | - $("#post_"+post_id).parent().after(data); | |
185 | + $("#post_"+post_id).parent().after(data.html); | |
186 | 186 | frm.parent().parent().remove(); |
187 | 187 | }, |
188 | 188 | error: function(data) { |
... | ... | @@ -344,7 +344,7 @@ function edit_post_answer(url, answer_id, success_message) { |
344 | 344 | success: function (data) { |
345 | 345 | alertify.success(success_message); |
346 | 346 | |
347 | - $("#answer_"+answer_id).parent().after(data); | |
347 | + $("#answer_"+answer_id).parent().after(data.html); | |
348 | 348 | frm.parent().parent().remove(); |
349 | 349 | }, |
350 | 350 | error: function(data) { | ... | ... |
forum/templates/forum/forum_form.html
... | ... | @@ -8,6 +8,7 @@ |
8 | 8 | {% if field.field.widget.input_type == 'hidden' %} |
9 | 9 | {% render_field field class='form-control' %} |
10 | 10 | {% elif field.auto_id == 'id_limit_date' %} |
11 | + <label for="{{ field.auto_id }}">{{ field.label }}</label> | |
11 | 12 | <input type="text" class="form-control date-picker"name="{{field.name}}" value="{{field.value|date:'SHORT_DATE_FORMAT'}}" id="{{ field.auto_id }}"> |
12 | 13 | <span id="helpBlock" class="help-block">{{ field.help_text }}</span> |
13 | 14 | {% else %} | ... | ... |