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_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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue