From 6af854e44d0207d6e771b8af6e6eca9b2a800633 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 29 May 2016 20:01:05 +0200 Subject: stop counting up if trying to vote twice --- templates/index.html | 1 + 1 file changed, 1 insertion(+) (limited to 'templates/index.html') 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({ -- cgit v1.3.1