mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 06:01:36 +01:00
Only set notification tab for none active tabs
This commit is contained in:
parent
0f799acd75
commit
0cea328928
@ -518,7 +518,11 @@
|
|||||||
notifyAppTab: function(_appname, _clear)
|
notifyAppTab: function(_appname, _clear)
|
||||||
{
|
{
|
||||||
var tab = this.tabsUi.getTab(_appname);
|
var tab = this.tabsUi.getTab(_appname);
|
||||||
if (tab) this.tabsUi.getTab(_appname).setNotification(_clear);
|
// do not set tab's notification if it's the active tab
|
||||||
|
if (tab && (this.activeApp.appName != _appname || _clear))
|
||||||
|
{
|
||||||
|
this.tabsUi.getTab(_appname).setNotification(_clear);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})(window);
|
})(window);
|
||||||
|
@ -824,13 +824,9 @@
|
|||||||
if (notifymessages[id]['status'] != 'SEEN')
|
if (notifymessages[id]['status'] != 'SEEN')
|
||||||
{
|
{
|
||||||
counter++;
|
counter++;
|
||||||
// do not set tab's notification if it's the active tab
|
|
||||||
if (framework.activeApp.appName != notifymessages[id]['extra_data']['app'])
|
|
||||||
{
|
|
||||||
framework.notifyAppTab(notifymessages[id]['extra_data']['app']);
|
framework.notifyAppTab(notifymessages[id]['extra_data']['app']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (counter > 0)
|
if (counter > 0)
|
||||||
{
|
{
|
||||||
$topmenu_info_notifications.addClass('egwpopup_notify');
|
$topmenu_info_notifications.addClass('egwpopup_notify');
|
||||||
|
Loading…
Reference in New Issue
Block a user