thay đổi logs đồng bộ từ append sang prepend

This commit is contained in:
dongpd 2020-11-04 17:30:48 +07:00
parent 2113fd89c5
commit d447e460c0

View File

@ -453,7 +453,7 @@ function syncLogs(data) {
success: function (data) {
var html = "";
html = "<span class='text-green'><i class='fa fa-check'></i> Đồng bộ thành công <b>" + data.totals + "</b> sự kiện từ thiết bị <b>" + data.IP + "</b>.</span><br>";
$("#logs-response").append(html);
$("#logs-response").prepend(html);
progressLogs++;
var percent = parseInt(progressLogs / totalsLogs * 100);
$("#progress").attr("aria-valuenow", percent);