mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
update toaster template class and fix toast timeout
This commit is contained in:
@@ -20,11 +20,11 @@ function pwgToaster(info) {
|
||||
template.find('.toast_icon').addClass(info.icon === 'success' ? 'icon-ok' : 'icon-cancel');
|
||||
template.addClass(info.icon === 'success' ? info.icon : 'error');
|
||||
|
||||
template.removeClass('template');
|
||||
template.removeClass('template-pwg-toaster');
|
||||
template.appendTo('#pwg_toaster');
|
||||
|
||||
const time = info.time ?? 3600;
|
||||
setInterval(() => {
|
||||
setTimeout(() => {
|
||||
template.fadeOut(() => {
|
||||
template.remove();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user