mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
settings-dns: expand custom servers box if it has custom servers
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -94,6 +94,16 @@ function fillDNSupstreams(value, servers) {
|
||||
// Initialize textfield
|
||||
updateDNSserversTextfield(value.value, customServers);
|
||||
|
||||
// Expand the box if there are custom servers
|
||||
// Not using the AdminLTE API so that the expansion is not animated
|
||||
// Otherwise, we could use `$(customBox).boxWidget("expand")`
|
||||
if (customServers > 0) {
|
||||
const customBox = document.getElementById("custom-servers-box");
|
||||
customBox.classList.remove("collapsed-box");
|
||||
customBox.querySelector(".btn-box-tool > i").classList.replace("fa-plus", "fa-minus");
|
||||
customBox.querySelector(".box-body").style = "";
|
||||
}
|
||||
|
||||
// Hide the loading animation
|
||||
$("#dns-upstreams-overlay").hide();
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ mg.include('scripts/lua/settings_header.lp','r')
|
||||
<p>ECS (Extended Client Subnet) defines a mechanism for recursive resolvers to send partial client IP address information to authoritative DNS name servers. Content Delivery Networks (CDNs) and latency-sensitive services use this to give geo-located responses when responding to name lookups coming through public DNS resolvers. <em>Note that ECS may result in reduced privacy.</em></p>
|
||||
</div>
|
||||
<div class="col-sm-12">
|
||||
<div class="box collapsed-box">
|
||||
<div class="box collapsed-box" id="custom-servers-box">
|
||||
<div class="box-header with-border pointer" data-widget="collapse">
|
||||
<h3 class="box-title">Custom DNS servers <span id="custom-servers-title"></span></h3>
|
||||
<div class="box-tools pull-right">
|
||||
|
||||
Reference in New Issue
Block a user