Show failure message if domain was invalid

This commit is contained in:
Mcat12
2016-08-19 20:02:08 -04:00
parent 81e55595f8
commit 8182a0da57
+2 -1
View File
@@ -85,7 +85,8 @@ function add() {
method: "post",
data: {"domain":domain.val(), "list":list_type, "token":token},
success: function(response) {
if (response.indexOf("not a valid argument")>=0) {
if (response.indexOf("not a valid argument") >= 0 ||
response.indexOf("is not a valid domain") >= 0) {
alFailure.show();
alFailure.delay(1000).fadeOut(2000, function() {
alFailure.hide();