summaryrefslogtreecommitdiffstats
path: root/templates/message.html
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-06-29 19:04:05 -0400
committerAamir Khan <syst3m.w0rm@gmail.com>2012-06-29 19:04:05 -0400
commitafd6cbf2f6911500df4c32417dc041192da41d62 (patch)
treed9a484d928990f5d7e462a32bd5b125d8434f27f /templates/message.html
parent3d837940413c0ada663bd9671e2fa0b5e241df9c (diff)
downloadhyperkitty-afd6cbf2f6911500df4c32417dc041192da41d62.tar.gz
hyperkitty-afd6cbf2f6911500df4c32417dc041192da41d62.tar.xz
hyperkitty-afd6cbf2f6911500df4c32417dc041192da41d62.zip
Fix #6: Refresh the page using JS location.reload()
Diffstat (limited to 'templates/message.html')
-rw-r--r--templates/message.html7
1 files changed, 5 insertions, 2 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;