poll fixes

pull/1/head
Pierre Bondoerffer 8 years ago
parent ea5301be13
commit d483e10e77
No known key found for this signature in database
GPG Key ID: C0C7C0C5063F2236

@ -264,7 +264,6 @@ define([
setFocus(f); setFocus(f);
if (typeof(cb) === "function") if (typeof(cb) === "function")
{ {
console.log("change cb");
cb(); cb();
} }
}; };
@ -278,9 +277,7 @@ define([
return; return;
} }
window.setTimeout(function() { window.setTimeout(updateTable);
updateTable();
});
}; };
var getRealtimeId = function (input) { var getRealtimeId = function (input) {
@ -366,8 +363,8 @@ define([
} }
}; };
var hideInputs = function (e, isKeyup) { var hideInputs = function (e) {
if (!isKeyup && $(e.target).is('[type="text"]')) { if ($(e.target).is('[type="text"]')) {
return; return;
} }
$('.lock[data-rt-id!="' + APP.userid + '"]').html(lockHTML); $('.lock[data-rt-id!="' + APP.userid + '"]').html(lockHTML);
@ -401,9 +398,9 @@ define([
switch (nodeName) { switch (nodeName) {
case 'INPUT': case 'INPUT':
handleInput(target); handleInput(target);
if (isKeyup && (e.keyCode === 13 || e.keyCode === 27)) { //if (isKeyup && (e.keyCode === 13 || e.keyCode === 27)) {
hideInputs(e, isKeyup); //hideInputs(e, isKeyup);
} //}
break; break;
case 'SPAN': case 'SPAN':
//case 'LABEL': //case 'LABEL':

Loading…
Cancel
Save