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);
}
}