From 28329bcd0a592cd2749c2d61369df672fc4e28e9 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 18 Sep 2021 19:44:22 +0530 Subject: [PATCH] webapp dhcp.js: fixed stuck button issue after removing lease. --- DnsServerCore/www/js/dhcp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DnsServerCore/www/js/dhcp.js b/DnsServerCore/www/js/dhcp.js index 6295f434..d45d2180 100644 --- a/DnsServerCore/www/js/dhcp.js +++ b/DnsServerCore/www/js/dhcp.js @@ -148,7 +148,9 @@ function removeLease(objBtn, index, scopeName, hardwareAddress) { HTTPRequest({ url: "/api/removeDhcpLease?token=" + token + "&name=" + encodeURIComponent(scopeName) + "&hardwareAddress=" + encodeURIComponent(hardwareAddress), success: function (responseJSON) { + btn.button('reset'); $("#modalDhcpRemoveLease").modal("hide"); + refreshDhcpLeases(); showAlert("success", "Lease Removed!", "The DHCP lease was removed successfully.");