From a1f0529c1b83f20ca51ca00be7efb2e3a5964523 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 7 Aug 2021 19:40:26 +0530 Subject: [PATCH] webapp: minor fix while showing zone name for root zone case. --- DnsServerCore/www/js/zone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DnsServerCore/www/js/zone.js b/DnsServerCore/www/js/zone.js index cfaafaec..7f42439f 100644 --- a/DnsServerCore/www/js/zone.js +++ b/DnsServerCore/www/js/zone.js @@ -1214,7 +1214,7 @@ function showAddRecordModalNow(apps) { clearAddEditForm(); $("#titleAddEditRecord").text("Add Record"); - $("#lblAddEditRecordZoneName").text(zone); + $("#lblAddEditRecordZoneName").text(zone === "." ? "" : zone); $("#optEditRecordTypeSoa").hide(); $("#btnAddEditRecord").attr("onclick", "addRecord(); return false;"); @@ -1643,7 +1643,7 @@ function showEditRecordModal(objBtn) { clearAddEditForm(); $("#titleAddEditRecord").text("Edit Record"); - $("#lblAddEditRecordZoneName").text(zone); + $("#lblAddEditRecordZoneName").text(zone === "." ? "" : zone); $("#optEditRecordTypeSoa").show(); $("#optAddEditRecordType").val(type); $("#divAddEditRecordOverwrite").hide();