summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-05-29 20:01:05 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-05-29 20:01:05 +0200
commit6af854e44d0207d6e771b8af6e6eca9b2a800633 (patch)
tree281c0778545374cd1ffcd0b1d5f7e0077816c99e /templates/index.html
parent4bfb423385176c02bdee0e1118a3041d0c73a6fe (diff)
downloadjokevote-6af854e44d0207d6e771b8af6e6eca9b2a800633.tar.gz
jokevote-6af854e44d0207d6e771b8af6e6eca9b2a800633.zip
stop counting up if trying to vote twice
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
index dc6e47e..5eec239 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -77,6 +77,7 @@
function submitAjaxer(e, name, value) {
e.preventDefault();
+ if ($(this).hasClass('disabled')) { return; }
var form = $(this).closest('form');
var joke = $(this).closest('.joke');
$.ajax({