diff --git a/app/static/custom/js/custom.js b/app/static/custom/js/custom.js index cfb6e97..a7bef21 100644 --- a/app/static/custom/js/custom.js +++ b/app/static/custom/js/custom.js @@ -112,4 +112,41 @@ function SelectElement(elementID, valueToSelect) { var element = document.getElementById(elementID); element.value = valueToSelect; +} + +function getdnssec(url){ + + $.getJSON(url, function(data) { + var modal = $("#modal_dnssec_info"); + + if (data['status'] == 'error'){ + modal.find('.modal-body p').text(data['msg']); + + } + else { + dnssec_msg = ''; + var dnssec = data['dnssec']; + for (var i = 0; i < dnssec.length; i++) { + if (dnssec[i]['active']){ + dnssec_msg += '
{% if domains|length > 1 %}Domains{% else %}Domain{% endif %}
{% if domain_count > 1 %}Domains{% else %}Domain{% endif %}