From afd6cbf2f6911500df4c32417dc041192da41d62 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Fri, 29 Jun 2012 19:04:05 -0400 Subject: Fix #6: Refresh the page using JS location.reload() --- templates/thread.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'templates/thread.html') diff --git a/templates/thread.html b/templates/thread.html index b15dd45..31ab4ef 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -64,7 +64,8 @@ csrfmiddlewaretoken : '{{ csrf_token }}' }, success : function(response) { - alert(response); + console.log(response); + location.reload(); } }); return false; @@ -86,7 +87,9 @@ csrfmiddlewaretoken : '{{ csrf_token }}' }, success : function(response) { - alert(response); + console.log(response); + // @TODO : Remove this reload and update count using AJAX + location.reload(); } }); return false; -- cgit