Add count div to domain selector (#7305)

* Add count div to domain selector
This commit is contained in:
Alex
2025-03-11 16:11:40 -06:00
committed by GitHub
parent da6471df5f
commit 885df6b3fb
2 changed files with 17 additions and 15 deletions

View File

@@ -1084,7 +1084,7 @@
obj = JSON.parse(this.responseText);
//update the domain count
document.getElementById('domain_count').innerText = '('+ obj.length +')';
document.getElementById('domain_count').innerText = obj.length;
//add new options from the json results
for (var i=0; i < obj.length; i++) {
@@ -1184,7 +1184,7 @@
<div id='domains_block'>
<div id='domains_header'>
<input id='domains_hide' type='button' class='btn' style='float: right' value="{$text.theme_button_close}">
<a id='domains_title' href='{$domains_app_path}'>{$text.theme_title_domains} <span id='domain_count' style='font-size: 80%;'></span></a>
<a id='domains_title' href='{$domains_app_path}'>{$text.theme_title_domains}<div class='count' id='domain_count' style='font-size: 80%;'></div></a>
<br><br>
<input type='text' id='domains_search' class='formfld' style='margin-left: 0; min-width: 100%; width: 100%;' placeholder="{$text.theme_label_search}" onkeyup="search_domains('domains_list');">
</div>