Avoid double validation, avoid redraw

This commit is contained in:
fbsanchez 2019-06-13 13:52:38 +02:00
parent 0afb53dc17
commit 029d3b073f
2 changed files with 4 additions and 3 deletions

View File

@ -251,11 +251,12 @@ function events_update_status($id_evento, $status, $filter=null, $history=false)
AND tu.id_agente = tf.id_agente AND tu.id_agente = tf.id_agente
AND tu.id_agentmodule = tf.id_agentmodule AND tu.id_agentmodule = tf.id_agentmodule
AND tf.max_id_evento = %d AND tf.max_id_evento = %d
SET tu.estado = %d', SET tu.estado = %d, tu.ack_utimestamp = %d',
$table, $table,
$sql, $sql,
$id_evento, $id_evento,
$status $status,
time()
); );
break; break;
} }

View File

@ -699,7 +699,7 @@ function update_event(table, id_evento, type, row) {
redraw = true; redraw = true;
} }
if (redraw) { if (redraw) {
table.draw().page(0); table.draw(false);
} else { } else {
$(row) $(row)
.closest("tr") .closest("tr")