mirror of https://github.com/sualko/cloud_bbb
fix: hide success message after 3 sec
parent
dd7bd97cb3
commit
d7a0bfce09
|
@ -52,6 +52,10 @@ $(() => {
|
||||||
saveSettings(this['api.url'].value, this['api.secret'].value).then(() => {
|
saveSettings(this['api.url'].value, this['api.secret'].value).then(() => {
|
||||||
const successElement = generateSuccessElement(t('bbb', 'Settings saved'));
|
const successElement = generateSuccessElement(t('bbb', 'Settings saved'));
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
$('#bbb-result').empty();
|
||||||
|
}, 3000);
|
||||||
|
|
||||||
$('#bbb-result').append(successElement);
|
$('#bbb-result').append(successElement);
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
let message = t('bbb', 'Unexpected error occurred');
|
let message = t('bbb', 'Unexpected error occurred');
|
||||||
|
|
Loading…
Reference in New Issue