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
diff options
context:
space:
mode:
Diffstat (limited to 'js/vote.js')
-rw-r--r--js/vote.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/vote.js b/js/vote.js
index a3004f84..e49f5fe5 100644
--- a/js/vote.js
+++ b/js/vote.js
@@ -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);