From f2d98ebcdf6ecd18ad6033f6fdddfe55de3edfca Mon Sep 17 00:00:00 2001 From: fusionate Date: Wed, 18 Jan 2023 00:34:34 +0000 Subject: [PATCH] Domain Selector: Restore previous click functionality and appearance. --- themes/default/template.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/themes/default/template.php b/themes/default/template.php index 5f51c3d7d4..4527f57939 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -1074,21 +1074,21 @@ //div.classList.add("domains_list_item_inactive"); //var item_description_class = 'domain_inactive_list_item_description'; } - + + //set link on domain div in list + div.setAttribute('onclick',"window.location.href='{$domains_app_path}?domain_uuid=" + obj[i].domain_uuid + "&domain_change=true';"); + + //define domain link text and description (if any) link_label = obj[i].domain_name; if (obj[i].domain_description != null) { - link_label += ' - ' + obj[i].domain_description; + link_label += " " + obj[i].domain_description + ""; } var a_tag = document.createElement('a'); - a_tag.setAttribute('href','{$domains_app_path}?domain_uuid='+obj[i].domain_uuid+'&domain_change=true'); - a_tag.innerText = link_label; + a_tag.setAttribute('href','manage:'+obj[i].domain_name); + a_tag.setAttribute('onclick','event.preventDefault();'); + a_tag.innerHTML = link_label; div.appendChild(a_tag); - //div.innerHTML = ''+obj[i].domain_name+' '; - //if (obj[i].domain_description != null) { - // div.innerHTML += ' - '+obj[i].domain_description+''; - //} - document.getElementById(element_id).appendChild(div); } }