Add closing timer on notifications

This commit is contained in:
Hadi Nategh
2018-02-19 17:17:24 +01:00
parent 8f752fcc03
commit 7510a94e11
2 changed files with 30 additions and 1 deletions

View File

@ -576,6 +576,11 @@
return;
}
if (typeof window.app == 'undefined') window.app = {};
window.onbeforeunload = function()
{
if (typeof egw.killAliveNotifications =='function') egw.killAliveNotifications();
};
window.app.notifications = new self();
// toggle notifications bar
jQuery('.egwpopup_toggle').click(function(){window.app.notifications.toggle();});