diff --git a/forum/static/js/forum.js b/forum/static/js/forum.js index 622f8cb..06aa6f1 100644 --- a/forum/static/js/forum.js +++ b/forum/static/js/forum.js @@ -74,6 +74,8 @@ function setForumCreateFormSubmit(topic) { success: function (data) { $(".topic_" + topic).find('.foruns_list').append("
  • "+data.name+"
  • "); + alertify.success(data.message); + $("#createForum").modal('hide'); }, error: function(data) { diff --git a/forum/templates/forum/forum_form.html b/forum/templates/forum/forum_form.html index e11791f..0c3945e 100644 --- a/forum/templates/forum/forum_form.html +++ b/forum/templates/forum/forum_form.html @@ -15,21 +15,21 @@ {% render_field field %} {{ field.help_text }} - {% if field.errors %} -
    -
    - + {% endif %} + {% if field.errors %} +
    +
    + - {% endif %} +
    {% endif %}
    {% endfor %} -- libgit2 0.21.2