From 1a1ecfb88e35ae2ba1b89fd9453e2f5b80a0051e Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 6 Mar 2022 17:00:19 +0530 Subject: [PATCH] dhcp.js: minor code changes done. --- DnsServerCore/www/js/dhcp.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DnsServerCore/www/js/dhcp.js b/DnsServerCore/www/js/dhcp.js index fa440226..92fb7d96 100644 --- a/DnsServerCore/www/js/dhcp.js +++ b/DnsServerCore/www/js/dhcp.js @@ -1,6 +1,6 @@ /* Technitium DNS Server -Copyright (C) 2021 Shreyas Zare (shreyas@technitium.com) +Copyright (C) 2022 Shreyas Zare (shreyas@technitium.com) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -51,7 +51,7 @@ function refreshDhcpLeases() { tableHtmlRows += "
"; } @@ -132,7 +132,8 @@ function convertToDynamicLease(index, scopeName, hardwareAddress) { }); } -function showRemoveLease(scopeName, hardwareAddress) { +function showRemoveLeaseModal(scopeName, hardwareAddress) { + $("#divDhcpRemoveLeaseAlert").html(""); $("#btnRemoveDhcpLease").attr("onclick", "removeLease(this, '" + scopeName + "', '" + hardwareAddress + "');"); $("#modalDhcpRemoveLease").modal("show"); }