Bug: catch excrption request to engine fail

CR: sonhh (fake)
This commit is contained in:
2021-08-26 16:51:36 +07:00
parent b207d54462
commit 14467d53b5
10 changed files with 124 additions and 79 deletions

View File

@@ -465,6 +465,11 @@ function syncFeature(id, fullData) {
totals: totals
},
success: function (data) {
if (!data) {
common.modalBlock(false);
common.modalAlert($("input[name='ENGINE_KHONG_HOAT_DONG']").val(), "danger", "");
return;
}
console.log(data, progress);
progress++;
$("#progress-current").html(parseInt($("#progress-current").html()) + 1);