Updated dns/static/dns/dns.js

This commit is contained in:
dev-polymer
2024-03-22 14:15:18 +03:00
parent b137ec55d8
commit c1abdc5b6b

View File

@@ -170,6 +170,7 @@ app.controller('addModifyDNSRecords', function ($scope, $http) {
// Hide records boxes
$(".aaaaRecord").hide();
$(".cNameRecord").hide();
$(".httpsRecord").hide();
$(".mxRecord").hide();
$(".txtRecord").hide();
$(".spfRecord").hide();
@@ -239,6 +240,12 @@ app.controller('addModifyDNSRecords', function ($scope, $http) {
data.recordContentCNAME = $scope.recordContentCNAME;
data.ttl = $scope.ttl;
data.recordType = type;
} else if (type === "HTTPS") {
data.selectedZone = $scope.selectedZone;
data.recordName = $scope.recordName;
data.recordContentHTTPS = $scope.recordContentHTTPS;
data.ttl = $scope.ttl;
data.recordType = type;
} else if (type === "SPF") {
data.selectedZone = $scope.selectedZone;
data.recordName = $scope.recordName;
@@ -815,6 +822,7 @@ app.controller('addModifyDNSRecordsCloudFlare', function ($scope, $http, $window
// Hide records boxes
$(".aaaaRecord").hide();
$(".cNameRecord").hide();
$(".httpsRecord").hide();
$(".mxRecord").hide();
$(".txtRecord").hide();
$(".spfRecord").hide();
@@ -883,6 +891,12 @@ app.controller('addModifyDNSRecordsCloudFlare', function ($scope, $http, $window
data.recordContentCNAME = $scope.recordContentCNAME;
data.ttl = $scope.ttl;
data.recordType = type;
} else if (type === "HTTPS") {
data.selectedZone = $scope.selectedZone;
data.recordName = $scope.recordName;
data.recordContentHTTPS = $scope.recordContentHTTPS;
data.ttl = $scope.ttl;
data.recordType = type;
} else if (type === "SPF") {
data.selectedZone = $scope.selectedZone;
data.recordName = $scope.recordName;
@@ -1308,4 +1322,4 @@ app.controller('addModifyDNSRecordsCloudFlare', function ($scope, $http, $window
});
/* Java script code for CloudFlare */
/* Java script code for CloudFlare */