summaryrefslogtreecommitdiffstats
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
parent3d837940413c0ada663bd9671e2fa0b5e241df9c (diff)
downloadhyperkitty-afd6cbf2f6911500df4c32417dc041192da41d62.tar.gz
hyperkitty-afd6cbf2f6911500df4c32417dc041192da41d62.tar.xz
hyperkitty-afd6cbf2f6911500df4c32417dc041192da41d62.zip
Fix #6: Refresh the page using JS location.reload()
-rw-r--r--templates/message.html7
-rw-r--r--templates/thread.html7
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;