diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-29 20:01:05 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-05-29 20:01:05 +0200 |
| commit | 6af854e44d0207d6e771b8af6e6eca9b2a800633 (patch) | |
| tree | 281c0778545374cd1ffcd0b1d5f7e0077816c99e /templates/index.html | |
| parent | 4bfb423385176c02bdee0e1118a3041d0c73a6fe (diff) | |
| download | jokevote-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.html | 1 |
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({ |
