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/message.html | 7 +++++-- templates/thread.html | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/templates/message.html b/templates/message.html index d3d884b..592e85d 100644 --- a/templates/message.html +++ b/templates/message.html @@ -30,7 +30,8 @@ csrfmiddlewaretoken : '{{ csrf_token }}' }, success : function(response) { - alert(response); + console.log(response); + location.reload(); } }); return false; @@ -52,7 +53,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; 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