diff options
| -rw-r--r-- | templates/message.html | 7 | ||||
| -rw-r--r-- | 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; |
