mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
Fix notifications low verbosity does not stop ringing bell animation after notification being deleted or all being deleted
This commit is contained in:
parent
5fd83ae3eb
commit
8efb4381fa
@ -578,6 +578,7 @@
|
|||||||
notifymessages = {};
|
notifymessages = {};
|
||||||
jQuery("#egwpopup_list").empty();
|
jQuery("#egwpopup_list").empty();
|
||||||
egw.loading_prompt('popup_notifications', false);
|
egw.loading_prompt('popup_notifications', false);
|
||||||
|
this.bell("inactive");
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -752,7 +753,10 @@
|
|||||||
switch(egw.preference('egwpopup_verbosity', 'notifications'))
|
switch(egw.preference('egwpopup_verbosity', 'notifications'))
|
||||||
{
|
{
|
||||||
case 'low':
|
case 'low':
|
||||||
this.bell('active');
|
if (Object.keys(notifymessages).length>0 && this.counterUpdate()>0)
|
||||||
|
{
|
||||||
|
this.bell('active');
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'high':
|
case 'high':
|
||||||
if (hasUnseen.length > 0)
|
if (hasUnseen.length > 0)
|
||||||
@ -850,6 +854,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set new state of notifications counter
|
* Set new state of notifications counter
|
||||||
|
* @return number of new messages
|
||||||
*/
|
*/
|
||||||
notifications.prototype.counterUpdate = function ()
|
notifications.prototype.counterUpdate = function ()
|
||||||
{
|
{
|
||||||
@ -890,6 +895,7 @@
|
|||||||
{
|
{
|
||||||
framework.topmenu_info_notify('notifications', false);
|
framework.topmenu_info_notify('notifications', false);
|
||||||
}
|
}
|
||||||
|
return counter;
|
||||||
};
|
};
|
||||||
|
|
||||||
var lab = egw_LAB || $LAB;
|
var lab = egw_LAB || $LAB;
|
||||||
|
Loading…
Reference in New Issue
Block a user