mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
Add a few comments and remove debug output
This commit is contained in:
parent
a263936243
commit
df7671d393
@ -91,6 +91,7 @@ if($uri == "/")
|
|||||||
<footer>Generated <?php echo date('D g:i A, M d'); ?> by Pi-hole <?php echo $piHoleVersion; ?></footer>
|
<footer>Generated <?php echo date('D g:i A, M d'); ?> by Pi-hole <?php echo $piHoleVersion; ?></footer>
|
||||||
<script src="http://pi.hole/admin/scripts/vendor/jquery.min.js"></script>
|
<script src="http://pi.hole/admin/scripts/vendor/jquery.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
// Create event for when the output is appended to
|
||||||
(function($) {
|
(function($) {
|
||||||
var origAppend = $.fn.append;
|
var origAppend = $.fn.append;
|
||||||
|
|
||||||
@ -126,8 +127,8 @@ else
|
|||||||
|
|
||||||
$( "#whitelisting" ).on( "click", function(){ $( "#whitelistingform" ).removeAttr( "hidden" ); });
|
$( "#whitelisting" ).on( "click", function(){ $( "#whitelistingform" ).removeAttr( "hidden" ); });
|
||||||
|
|
||||||
|
// Remove whitelist functionality if the domain was blocked because of a wildcard
|
||||||
$( "#output" ).bind("append", function(){
|
$( "#output" ).bind("append", function(){
|
||||||
console.log("change");
|
|
||||||
if($( "#output" ).contents()[0].data.indexOf("Wildcard blocking") !== -1)
|
if($( "#output" ).contents()[0].data.indexOf("Wildcard blocking") !== -1)
|
||||||
{
|
{
|
||||||
$( "#whitelisting" ).hide();
|
$( "#whitelisting" ).hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user