mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-06 16:53:59 +00:00
webapp: minor ui enhancements.
This commit is contained in:
@@ -62,6 +62,11 @@ $(function () {
|
||||
}
|
||||
});
|
||||
|
||||
$("#chkAddEditRecordDataPtr").click(function () {
|
||||
var addPtrRecord = $("#chkAddEditRecordDataPtr").prop('checked');
|
||||
$("#chkAddEditRecordDataCreatePtrZone").prop('disabled', !addPtrRecord);
|
||||
});
|
||||
|
||||
$("input[type=radio][name=rdAddEditRecordDataForwarderProtocol]").change(updateAddEditFormForwarderPlaceholder);
|
||||
|
||||
});
|
||||
@@ -639,6 +644,7 @@ function clearAddEditForm() {
|
||||
$("#txtAddEditRecordDataValue").val("");
|
||||
$("#divAddEditRecordDataPtr").show();
|
||||
$("#chkAddEditRecordDataPtr").prop("checked", false);
|
||||
$("#chkAddEditRecordDataCreatePtrZone").prop('disabled', true);
|
||||
$("#chkAddEditRecordDataCreatePtrZone").prop("checked", false);
|
||||
$("#chkAddEditRecordDataPtrLabel").text("Add reverse (PTR) record");
|
||||
|
||||
@@ -725,6 +731,7 @@ function modifyAddRecordForm() {
|
||||
$("#lblAddEditRecordDataValue").text("IPv4 Address");
|
||||
$("#txtAddEditRecordDataValue").val("");
|
||||
$("#chkAddEditRecordDataPtr").prop("checked", false);
|
||||
$("#chkAddEditRecordDataCreatePtrZone").prop('disabled', true);
|
||||
$("#chkAddEditRecordDataCreatePtrZone").prop("checked", false);
|
||||
$("#chkAddEditRecordDataPtrLabel").text("Add reverse (PTR) record");
|
||||
$("#divAddEditRecordData").show();
|
||||
@@ -735,6 +742,7 @@ function modifyAddRecordForm() {
|
||||
$("#lblAddEditRecordDataValue").text("IPv6 Address");
|
||||
$("#txtAddEditRecordDataValue").val("");
|
||||
$("#chkAddEditRecordDataPtr").prop("checked", false);
|
||||
$("#chkAddEditRecordDataCreatePtrZone").prop('disabled', true);
|
||||
$("#chkAddEditRecordDataCreatePtrZone").prop("checked", false);
|
||||
$("#chkAddEditRecordDataPtrLabel").text("Add reverse (PTR) record");
|
||||
$("#divAddEditRecordData").show();
|
||||
@@ -1098,6 +1106,7 @@ function showEditRecordModal(objBtn) {
|
||||
case "AAAA":
|
||||
$("#txtAddEditRecordDataValue").val(divData.attr("data-record-value"));
|
||||
$("#chkAddEditRecordDataPtr").prop("checked", false);
|
||||
$("#chkAddEditRecordDataCreatePtrZone").prop('disabled', true);
|
||||
$("#chkAddEditRecordDataCreatePtrZone").prop("checked", false);
|
||||
$("#chkAddEditRecordDataPtrLabel").text("Update reverse (PTR) record");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user