diff --git a/app/static/custom/js/custom.js b/app/static/custom/js/custom.js
index 4c597fa..0fdb3f8 100644
--- a/app/static/custom/js/custom.js
+++ b/app/static/custom/js/custom.js
@@ -1,3 +1,5 @@
+var dnssecKeyList = []
+
function applyChanges(data, url, showResult, refreshPage) {
var success = false;
$.ajax({
@@ -131,7 +133,7 @@ function enable_dns_sec(url) {
})
}
-function getdnssec(url){
+function getdnssec(url,domain){
$.getJSON(url, function(data) {
var modal = $("#modal_dnssec_info");
@@ -143,29 +145,35 @@ function getdnssec(url){
dnssec_msg = '';
var dnssec = data['dnssec'];
- if (dnssec.length == 0 && PDNS_VERSION > 4.1) {
+ if (dnssec.length == 0 && parseFloat(PDNS_VERSION) > 4.1) {
dnssec_msg = '
Enable DNSSEC?';
modal.find('.modal-body p').html(dnssec_msg);
- dnssec_footer = '';
+ dnssec_footer = '';
modal.find('.modal-footer ').html(dnssec_footer);
}
- for (var i = 0; i < dnssec.length; i++) {
- if (dnssec[i]['active']){
- dnssec_msg += '
'+
- '
';
- if(dnssec[i]['ds']){
- var dsList = dnssec[i]['ds'];
- dnssec_msg += 'DS';
- for (var j = 0; j < dsList.length; j++){
- dnssec_msg += '';
- }
- }
- dnssec_msg += '';
+ else {
+ if (parseFloat(PDNS_VERSION) > 4.1) {
+ dnssec_footer = '';
+ modal.find('.modal-footer ').html(dnssec_footer);
}
+ for (var i = 0; i < dnssec.length; i++) {
+ if (dnssec[i]['active']){
+ dnssec_msg += ''+
+ '
';
+ if(dnssec[i]['ds']){
+ var dsList = dnssec[i]['ds'];
+ dnssec_msg += 'DS';
+ for (var j = 0; j < dsList.length; j++){
+ dnssec_msg += '';
+ }
+ }
+ dnssec_msg += '';
+ }
+ }
}
modal.find('.modal-body p').html(dnssec_msg);
}