mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Put wildcard blocking entries into their own table
This commit is contained in:
@@ -49,7 +49,12 @@ function getFullName() {
|
||||
</div>
|
||||
|
||||
<!-- Domain List -->
|
||||
<h3>Exactl blocking</h3>
|
||||
<ul class="list-group" id="list"></ul>
|
||||
<?php if($list === "black") { ?>
|
||||
<h3>Wildcard blocking</h3>
|
||||
<ul class="list-group" id="list-wildcard"></ul>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
require "scripts/pi-hole/php/footer.php";
|
||||
|
||||
@@ -26,7 +26,12 @@ function sub(index, entry) {
|
||||
}
|
||||
|
||||
function refresh(fade) {
|
||||
var listw;
|
||||
var list = $("#list");
|
||||
if(listType === "black")
|
||||
{
|
||||
listw = $("#list-wildcard");
|
||||
}
|
||||
if(fade) {
|
||||
list.fadeOut(100);
|
||||
}
|
||||
@@ -48,7 +53,7 @@ function refresh(fade) {
|
||||
// Wildcard entry
|
||||
// remove leading *
|
||||
entry = entry.substr(1, entry.length - 1);
|
||||
list.append(
|
||||
listw.append(
|
||||
"<li id=\"" + index + "\" class=\"list-group-item clearfix\">" + entry +
|
||||
"<button class=\"btn btn-danger btn-xs pull-right\" type=\"button\">" +
|
||||
"<span class=\"glyphicon glyphicon-trash\"></span></button></li>");
|
||||
|
||||
Reference in New Issue
Block a user