chinh sua confirm text khi reset thiet bi
This commit is contained in:
parent
45be07f772
commit
9cca411720
|
@ -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"),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user