diff options
author | joergmschulz <joergmschulz@users.noreply.github.com> | 2016-08-08 22:14:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-08 22:14:19 +0300 |
commit | d59b63cc8528828f690a1a2f6bb146165733cc15 (patch) | |
tree | a119141ed68d245ebbe8d9fa71ad459aa4f0813a /js | |
parent | 0c757f107833c0bcd4eccf3ec81837b5ede91ba8 (diff) |
followed suggestions
removed =true and beautified the else section. Pls review.
Diffstat (limited to 'js')
-rw-r--r-- | js/vote.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -35,9 +35,10 @@ $(document).ready(function () { newUserTypes.push(-1); } var userDate = $(this).attr('id'); - if(isNaN($(this).attr('id')) == true) { + if(isNaN($(this).attr('id')) ) { newUserDates.push($(this).attr('id')); - } else { newUserDates.push(parseInt($(this).attr('id'))); + } else { + newUserDates.push(parseInt($(this).attr('id'))); } }); form.elements['dates'].value = JSON.stringify(newUserDates); |