diff --git a/www/poll/main.js b/www/poll/main.js index 105f93420..b7e6abf74 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -155,7 +155,7 @@ define([ id: id, type: 'text', placeholder: 'your name', - }).on('keyup', function () { + }).on('keyup change', function () { proxy.table.cols[id] = $user.val() || ""; }); @@ -179,9 +179,6 @@ define([ table.addRow($option, Checkbox, id); - - console.log(table.$[0]); - return $option; }; @@ -208,7 +205,7 @@ define([ options.forEach(function (text) { var id = rowuid(); - makeOption(proxy, id).val(text); + makeOption(proxy, id, text).val(text); }); console.log(options); });