webapp: fixed issue with updateRecordState() causing NS records to lose glue addresses.

This commit is contained in:
Shreyas Zare
2020-06-28 16:37:04 +05:30
parent ee0847d316
commit c0fe15cf63

View File

@@ -1416,6 +1416,10 @@ function updateRecordState(objBtn, disable) {
var apiUrl = "/api/updateRecord?token=" + token + "&type=" + type + "&domain=" + encodeURIComponent(domain) + "&ttl=" + ttl + "&value=" + encodeURIComponent(value) + "&disable=" + disable;
switch (type) {
case "NS":
apiUrl += "&glue=" + encodeURIComponent(divData.attr("data-record-glue"));
break;
case "MX":
apiUrl += "&preference=" + divData.attr("data-record-preference");
break;