mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 21:51:14 +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)
|
||||
{
|
||||
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);
|
||||
|
@ -818,17 +818,13 @@
|
||||
//reset all tab notifications
|
||||
framework.notifyAppTab(notifymessages[j]['extra_data']['app'], true);
|
||||
}
|
||||
|
||||
|
||||
for (var id in notifymessages)
|
||||
{
|
||||
if (notifymessages[id]['status'] != 'SEEN')
|
||||
{
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user