From d483e10e7703ba2410f681ea9a2ef9cff00ea75c Mon Sep 17 00:00:00 2001 From: Pierre Bondoerffer Date: Thu, 13 Apr 2017 17:07:09 +0200 Subject: [PATCH] poll fixes --- www/poll/main.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/www/poll/main.js b/www/poll/main.js index ff90adcfd..dca194717 100644 --- a/www/poll/main.js +++ b/www/poll/main.js @@ -264,7 +264,6 @@ define([ setFocus(f); if (typeof(cb) === "function") { - console.log("change cb"); cb(); } }; @@ -278,9 +277,7 @@ define([ return; } - window.setTimeout(function() { - updateTable(); - }); + window.setTimeout(updateTable); }; var getRealtimeId = function (input) { @@ -366,8 +363,8 @@ define([ } }; - var hideInputs = function (e, isKeyup) { - if (!isKeyup && $(e.target).is('[type="text"]')) { + var hideInputs = function (e) { + if ($(e.target).is('[type="text"]')) { return; } $('.lock[data-rt-id!="' + APP.userid + '"]').html(lockHTML); @@ -401,9 +398,9 @@ define([ switch (nodeName) { case 'INPUT': handleInput(target); - if (isKeyup && (e.keyCode === 13 || e.keyCode === 27)) { - hideInputs(e, isKeyup); - } + //if (isKeyup && (e.keyCode === 13 || e.keyCode === 27)) { + //hideInputs(e, isKeyup); + //} break; case 'SPAN': //case 'LABEL':