console.log('mod'); let domain_list = JSON.parse('{{mod.domain_list|json_encode|raw}}'); let domain_table = null; let mod_status = {{mod.mod_status}}; let timeout_search = null; let editor_mirror = null; String.prototype.isEmpty = function() { return (this.length === 0 || !this.trim()); }; $(document).ready(function() { {% if mod.isie == 1 %} uchip = new $.Uchip(); {% else %} uchip = new Uchip(); {% endif %} if(mod_status == 1){ listDomains(domain_list); } }); function listDomains(list){ domain_list = list; if(domain_list.length > 0){ let html_content = ''; let index = 0; let options_select = ''; domain_list.forEach(function(item){ let whole_domain = (item.type == 'domain' ? item.domain : item.subdomain + '.' + item.domain); options_select += ''; html_content += '
{{langmod.SECLABEL6}} | ' + '{{langmod.SECLABEL7}} | ' + '{{langmod.SECLABEL8}} | ' + '
---|