diff --git a/web/js/list-management.js b/web/js/list-management.js
index f171dd61..dcd20424 100644
--- a/web/js/list-management.js
+++ b/web/js/list-management.js
@@ -17,7 +17,14 @@ $(function () {
btnImage();
$("#Code").select2();
getTotalFeature();
+ setInterval(function () {
+ var current = parseInt($("#current-512").html());
+ var total = parseInt($("#total-512").html());
+ if (current < total)
+ getTotalFeature();
+ }, 5000);
});
+
function _search(e) {
var location = $(e).attr("data-href"); // + "?from=" + $("input[name='From']").val() + "&to=" + $("input[name='To']").val();
location = location + "?id=" + $("input[name='IDSearch']").val();
@@ -618,7 +625,7 @@ function getTotalFeature() {
console.log(data);
$("#totalPeople").html(`` + data.statistics.totalImg + `/` + data.statistics.total + ``);
$("#total128").html(`` + data.statistics["128"] + `/` + data.statistics.img + ``);
- $("#total512").html(`` + data.statistics["512"] + `/` + data.statistics.img + ``);
+ $("#total512").html(`` + data.statistics["512"] + `/` + data.statistics.img + ``);
},
error: function (jqXHR, textStatus, errorThrown) {
}