Skip to content

Commit

Permalink
Further tweaks and optimization
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <[email protected]>
DL6ER authored and PromoFaux committed Jun 2, 2020

Verified

This commit was signed with the committer’s verified signature.
PromoFaux Adam Warner
1 parent 6ed0f05 commit 16d3135
Showing 3 changed files with 14 additions and 11 deletions.
19 changes: 9 additions & 10 deletions groups-domains.php
Original file line number Diff line number Diff line change
@@ -48,24 +48,23 @@
<div class="col-md-6">
<div class="form-group">
<label for="new_domain">Domain:</label>
<div class="input-group">
<input id="new_domain" type="url" class="form-control active" placeholder="Domain to be added" autocomplete="off" spellcheck="false" autocapitalize="none" autocorrect="off">
<span class="input-group-addon">
<input type="checkbox" id="wildcard_checkbox">
<label for="wildcard_checkbox">wildcard</label>
</span>
</div>
</div>
<div class="form-group">
<strong><i class="fa fa-question-circle"></i> Checkbox "wildcard":</span></strong> Check this box if you want to involve
all subdomains. The entered domain will be converted to a RegEx filter while adding.
</div>
</div>
<div class="col-md-6 form-group">
<label for="new_domain_comment">Comment:</label>
<input id="new_domain_comment" type="text" class="form-control" placeholder="Description (optional)">
</div>
</div>
<div class="row">
<div class="col-md-12">
<div>
<input type="checkbox" id="wildcard_checkbox">
<label for="wildcard_checkbox"><strong>Add domain as wildcard</strong></label>
<p>Check this box if you want to involve all subdomains. The entered domain will be converted to a RegEx filter while adding.</p>
</div>
</div>
</div>
</div>
<!-- RegEx tab -->
<div id="tab_regex" class="tab-pane fade">
4 changes: 4 additions & 0 deletions scripts/pi-hole/js/footer.js
Original file line number Diff line number Diff line change
@@ -267,6 +267,10 @@ $(function () {
initTheme();
initCPUtemp();

if (typeof initpage === "function") {
setTimeout(initpage, 100);
}

// Run check immediately after page loading ...
checkMessages();
// ... and once again with five seconds delay
2 changes: 1 addition & 1 deletion scripts/pi-hole/js/index.js
Original file line number Diff line number Diff line change
@@ -1090,7 +1090,7 @@ $(function () {
// Pull in data via AJAX
updateForwardDestinationsPie();
}
});
}

//destroy all chartjs customTooltips on window resize
window.addEventListener("resize", function () {

0 comments on commit 16d3135

Please sign in to comment.