From f77e2cec343895d7bcf07f6ccb3769805456de04 Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 19 Jul 2016 17:27:40 +0200 Subject: [PATCH] set text values of new options --- www/poll/main.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); });