toi uu xu ly dong bo du lieu tu may chu

This commit is contained in:
2020-12-29 13:33:29 +07:00
parent ddcf67ba9c
commit c9d0c24218
5 changed files with 78 additions and 42 deletions

View File

@@ -421,7 +421,8 @@ function _syncFromServerForm(e) {
function _syncFromServer() {
var lists = [];
$.each($("#sync-lists").find(".success"), function () {
lists.push($(this).attr("data-id"));
var id = $(this).attr("data-id");
lists.push(JSON.parse($("#full-data-" + id).html()));
});
if (lists.length == 0) {
alert("Không có dữ liệu đồng bộ!");