diff options
author | joergmschulz <joergmschulz@users.noreply.github.com> | 2016-08-06 00:10:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-06 00:10:55 +0300 |
commit | 0c757f107833c0bcd4eccf3ec81837b5ede91ba8 (patch) | |
tree | df06610c973d7db98917651b17b5c97fab775512 /js | |
parent | 00091e9aa6fd3aaf503ef0ab472e056aed4498d9 (diff) |
see issue #71 / handle different entry types
@jaeger-sb proposed a change, in my environment it looks good, so I took the freedom to create this PR.
All Kudos to jaeger-sb!
Diffstat (limited to 'js')
-rw-r--r-- | js/vote.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -34,7 +34,11 @@ $(document).ready(function () { } else { newUserTypes.push(-1); } - newUserDates.push(parseInt($(this).attr('id'))); + var userDate = $(this).attr('id'); + if(isNaN($(this).attr('id')) == true) { + newUserDates.push($(this).attr('id')); + } else { newUserDates.push(parseInt($(this).attr('id'))); + } }); form.elements['dates'].value = JSON.stringify(newUserDates); form.elements['types'].value = JSON.stringify(newUserTypes); |