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:
authorv1r0x <vinzenz.rosenkranz@gmail.com>2016-03-10 00:20:54 +0300
committerVinzenz Rosenkranz <vinzenz.rosenkranz@gmail.com>2016-03-14 01:02:09 +0300
commit58bfedd7a23c842ab57a82a9fe5021aef4c1e395 (patch)
tree43167bd3cb4deb9288e2f245e1370adc3139d6da /js
parentdf51457853225935a389684fec7722fd032d5f93 (diff)
replace default param with undefined check
Diffstat (limited to 'js')
-rw-r--r--js/vote.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/vote.js b/js/vote.js
index e7caf4bc..83f5358b 100644
--- a/js/vote.js
+++ b/js/vote.js
@@ -126,7 +126,8 @@ $(document).on('click', '.poll-cell-active-is', function(e) {
deselectItem($(this));
});
-function selectItem(cell, cl='') {
+function selectItem(cell, cl) {
+ if(typeof cl === 'undefined') cl = '';
values_changed = true;
var ts = cell.attr('id');
var index = newUserDates.indexOf(ts);