Display which domain will be added to the black-/whitelist

This commit is contained in:
DL6ER
2016-11-14 10:52:54 +01:00
parent 409e189ed1
commit d7a6412d7a
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -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
View File
@@ -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">&times;</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">&times;</span></button>