diff --git a/web/js/common.js b/web/js/common.js index 1c439ef7..a04f6cb6 100644 --- a/web/js/common.js +++ b/web/js/common.js @@ -313,7 +313,12 @@ common.reset = function (e) { alert("Hãy lựa chọn thao tác!"); 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); $.ajax({ url: $(e).attr("data-href"),