diff --git a/forum/static/js/forum.js b/forum/static/js/forum.js index 2d5515a..d0f07e2 100644 --- a/forum/static/js/forum.js +++ b/forum/static/js/forum.js @@ -92,7 +92,7 @@ function createForum(url, topic) { * Function to delete a forum * */ -function delete_forum(url, forum, message) { +function delete_forum(url, forum, message, return_url) { alertify.confirm(message, function(){ var csrftoken = getCookie('csrftoken'); @@ -103,8 +103,9 @@ function delete_forum(url, forum, message) { }, url: url, success: function(data) { - $("#forum_"+forum).remove(); - $('#forumModal').modal('hide'); + alertify.alert('Amadeus', data, function(){ + window.location.href = return_url; + }); } }); }); diff --git a/forum/templates/forum/forum_view.html b/forum/templates/forum/forum_view.html index d41245f..0df7a45 100644 --- a/forum/templates/forum/forum_view.html +++ b/forum/templates/forum/forum_view.html @@ -42,7 +42,7 @@
-- libgit2 0.21.2