zone.js: removed NS glue validation check from front end to allow correct validation check to be done at backend.

This commit is contained in:
Shreyas Zare
2024-11-30 13:19:31 +05:30
parent 9fbecada3d
commit 2378447cee

View File

@@ -4151,12 +4151,6 @@ function addRecord() {
}
var glue = cleanTextList($("#txtAddEditRecordDataNsGlue").val());
var subDomainName = $("#txtAddEditRecordName").val();
if ((glue !== "") && ((subDomainName === "") || (subDomainName === "@"))) {
showAlert("warning", "Invalid!", "The zone's own NS records cannot have glue addresses. Please add separate A/AAAA records in the zone instead.", divAddEditRecordAlert);
$("#txtAddEditRecordDataNsGlue").focus();
return;
}
apiUrl += "&nameServer=" + encodeURIComponent(nameServer) + "&glue=" + encodeURIComponent(glue);
break;
@@ -5018,12 +5012,6 @@ function updateRecord() {
}
var glue = cleanTextList($("#txtAddEditRecordDataNsGlue").val());
var subDomainName = $("#txtAddEditRecordName").val();
if ((glue !== "") && ((subDomainName === "") || (subDomainName === "@"))) {
showAlert("warning", "Invalid!", "The zone's own NS records cannot have glue addresses. Please add separate A/AAAA records in the zone instead.", divAddEditRecordAlert);
$("#txtAddEditRecordDataNsGlue").focus();
return;
}
apiUrl += "&nameServer=" + encodeURIComponent(nameServer) + "&newNameServer=" + encodeURIComponent(newNameServer) + "&glue=" + encodeURIComponent(glue);
break;