update alert when reset device failed

CR: sonhh (fake)
This commit is contained in:
2021-09-20 15:11:00 +07:00
parent 66357b25d5
commit 61e82f68ca
6 changed files with 38 additions and 11 deletions

View File

@@ -328,7 +328,14 @@ common.reset = function (e) {
resetDevice: resetDevice
},
success: function (data) {
window.location = data;
common.modalBlock(false);
if (data.status)
window.location = data.url;
else {
$("#reset-error").removeClass("hidden");
$("#reset-close").addClass("hidden");
$("#reset-accept").html(data.btnText);
}
},
error: function (jqXHR, textStatus, errorThrown) {
common.modalBlock(false);