Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorjoergmschulz <joergmschulz@users.noreply.github.com>2016-08-08 22:14:19 +0300
committerGitHub <noreply@github.com>2016-08-08 22:14:19 +0300
commitd59b63cc8528828f690a1a2f6bb146165733cc15 (patch)
treea119141ed68d245ebbe8d9fa71ad459aa4f0813a /js
parent0c757f107833c0bcd4eccf3ec81837b5ede91ba8 (diff)
followed suggestions
removed =true and beautified the else section. Pls review.
Diffstat (limited to 'js')
-rw-r--r--js/vote.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/vote.js b/js/vote.js
index e49f5fe5..ff959dde 100644
--- a/js/vote.js
+++ b/js/vote.js
@@ -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);