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_agentmodule = tf.id_agentmodule
AND tf.max_id_evento = %d
SET tu.estado = %d',
SET tu.estado = %d, tu.ack_utimestamp = %d',
$table,
$sql,
$id_evento,
$status
$status,
time()
);
break;
}

View File

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