Add count div to domain selector

This commit is contained in:
Alex 2025-03-11 14:52:55 -07:00 committed by GitHub
parent da6471df5f
commit 7ff2a746d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 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>