mirror of
https://github.com/pi-hole/web.git
synced 2025-12-22 19:58:27 +00:00
@@ -143,8 +143,7 @@ function add(arg) {
|
|||||||
method: "post",
|
method: "post",
|
||||||
data: {"domain":domain.val(), "list":locallistType, "token":token},
|
data: {"domain":domain.val(), "list":locallistType, "token":token},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response.indexOf("not a valid argument") >= 0 ||
|
if (response.indexOf("] Pi-hole blocking is ") === -1) {
|
||||||
response.indexOf("is not a valid domain") >= 0) {
|
|
||||||
alFailure.show();
|
alFailure.show();
|
||||||
err.html(response);
|
err.html(response);
|
||||||
alFailure.delay(4000).fadeOut(2000, function() {
|
alFailure.delay(4000).fadeOut(2000, function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user