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:
DL6ER
2020-11-09 21:21:30 +01:00
parent 4557846858
commit ad43e5a8dc
3 changed files with 5 additions and 5 deletions

View File

@@ -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 () {

View File

@@ -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);
} }
}); });
}); });

View File

@@ -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.');
} }