mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Display which domain will be added to the black-/whitelist
This commit is contained in:
@@ -49,6 +49,8 @@ function add(domain,list) {
|
||||
var token = $("#token").html();
|
||||
var alInfo = $("#alInfo");
|
||||
var alList = $("#alList");
|
||||
var alDomain = $("#alDomain");
|
||||
alDomain.html(domain);
|
||||
var alSuccess = $("#alSuccess");
|
||||
var alFailure = $("#alFailure");
|
||||
|
||||
@@ -78,6 +80,7 @@ function add(domain,list) {
|
||||
alInfo.delay(1000).fadeOut(2000, function() {
|
||||
alInfo.hide();
|
||||
alList.html("");
|
||||
alDomain.html("");
|
||||
});
|
||||
} else {
|
||||
alSuccess.show();
|
||||
@@ -87,6 +90,7 @@ function add(domain,list) {
|
||||
alInfo.delay(1000).fadeOut(2000, function() {
|
||||
alInfo.hide();
|
||||
alList.html("");
|
||||
alDomain.html("");
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -98,6 +102,7 @@ function add(domain,list) {
|
||||
alInfo.delay(1000).fadeOut(2000, function() {
|
||||
alInfo.hide();
|
||||
alList.html("");
|
||||
alDomain.html("");
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ $token = $_SESSION['token'];
|
||||
<!-- Alerts -->
|
||||
<div id="alInfo" class="alert alert-info alert-dismissible fade in" role="alert" hidden="true">
|
||||
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
Adding to the <span id="alList"></span>...
|
||||
Adding <span id="alDomain"></span> to the <span id="alList"></span>...
|
||||
</div>
|
||||
<div id="alSuccess" class="alert alert-success alert-dismissible fade in" role="alert" hidden="true">
|
||||
<button type="button" class="close" data-hide="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
|
||||
Reference in New Issue
Block a user