mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04:38:28 +00:00
Add missing space and extend error hiding timeout from 4 to 10 seconds.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -106,7 +106,7 @@ function add(domain, list) {
|
|||||||
if (!response.success) {
|
if (!response.success) {
|
||||||
alFailure.show();
|
alFailure.show();
|
||||||
err.html(response.message);
|
err.html(response.message);
|
||||||
alFailure.delay(4000).fadeOut(2000, function () {
|
alFailure.delay(10000).fadeOut(2000, function () {
|
||||||
alFailure.hide();
|
alFailure.hide();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -125,7 +125,7 @@ function add(domain, list) {
|
|||||||
error: function () {
|
error: function () {
|
||||||
alFailure.show();
|
alFailure.show();
|
||||||
err.html("");
|
err.html("");
|
||||||
alFailure.delay(1000).fadeOut(2000, function () {
|
alFailure.delay(10000).fadeOut(2000, function () {
|
||||||
alFailure.hide();
|
alFailure.hide();
|
||||||
});
|
});
|
||||||
alInfo.delay(1000).fadeOut(2000, function () {
|
alInfo.delay(1000).fadeOut(2000, function () {
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ function add(domain, list) {
|
|||||||
alFailure.fadeIn(1000);
|
alFailure.fadeIn(1000);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
alertModal.modal("hide");
|
alertModal.modal("hide");
|
||||||
}, 3000);
|
}, 10000);
|
||||||
} else {
|
} else {
|
||||||
// Success
|
// Success
|
||||||
alSuccess.children(alDomain).html(domain);
|
alSuccess.children(alDomain).html(domain);
|
||||||
@@ -86,7 +86,7 @@ function add(domain, list) {
|
|||||||
alFailure.fadeIn(1000);
|
alFailure.fadeIn(1000);
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
alertModal.modal("hide");
|
alertModal.modal("hide");
|
||||||
}, 3000);
|
}, 10000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -616,7 +616,7 @@ if ($_POST['action'] == 'get_groups') {
|
|||||||
// Check return value of CHECK query (0 = only default group, 1 = special group assignments)
|
// Check return value of CHECK query (0 = only default group, 1 = special group assignments)
|
||||||
$only_default_group = (($check_result->fetchArray(SQLITE3_NUM)[0]) == 0) ? true : false;
|
$only_default_group = (($check_result->fetchArray(SQLITE3_NUM)[0]) == 0) ? true : false;
|
||||||
if(!$only_default_group) {
|
if(!$only_default_group) {
|
||||||
throw new Exception('Domain ' . $domain . 'is configured with special group settings.<br>'.
|
throw new Exception('Domain ' . $domain . ' is configured with special group settings.<br>'.
|
||||||
'Please modify the domain on the respective group management pages.');
|
'Please modify the domain on the respective group management pages.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user