check duplicate khi đồng bộ

This commit is contained in:
2020-12-09 11:04:33 +07:00
parent 4cb2f77598
commit ed4b8a0144
4 changed files with 25 additions and 4 deletions

View File

@@ -316,6 +316,10 @@ function _sync(e) {
$.each($("#sync-lists").find(".success"), function () {
lists.push($(this).attr("data-id"));
});
if (lists.length == 0) {
alert("Không có dữ liệu đồng bộ!");
return;
}
common.modalBlock(true);
$.ajax({
url: $(e).attr("data-href"),