chinh sua confirm text khi reset thiet bi

This commit is contained in:
dongpd 2020-12-23 09:04:47 +07:00
parent 45be07f772
commit 9cca411720

View File

@ -313,7 +313,12 @@ common.reset = function (e) {
alert("Hãy lựa chọn thao tác!"); alert("Hãy lựa chọn thao tác!");
return; return;
} }
if (confirm("Bạn có chắc chắn muốn reset thiết bị không?")) { var confirmText = "";
if (deleteDB)
confirmText = "Bạn có chắc chắn muốn xóa dữ liệu lưu trữ trong thiết bị không?";
if (resetDevice)
confirmText = "Bạn có chắc chắn muốn reset cấu hình thiết bị không?";
if (confirm(confirmText)) {
common.modalBlock(true); common.modalBlock(true);
$.ajax({ $.ajax({
url: $(e).attr("data-href"), url: $(e).attr("data-href"),