Avoid double validation, avoid redraw
This commit is contained in:
parent
0afb53dc17
commit
029d3b073f
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue