Fix notifications stalling login

This commit is contained in:
Hadi Nategh
2020-07-29 12:55:08 +02:00
parent bd8b99f8c1
commit 631587eab1
3 changed files with 30 additions and 21 deletions

View File

@ -418,11 +418,12 @@ function egw_fw_ui_tab(_parent, _contHeaderDiv, _contDiv, _icon, _callback,
/**
* set notification
*
* @param {boolean} _off if set to true the notification gets reset
* @param {int} _value if set to 0 the notification gets reset if nothing set
* it will increase the notification value by one
*/
egw_fw_ui_tab.prototype.setNotification = function(_off)
egw_fw_ui_tab.prototype.setNotification = function(_value)
{
this.notification = _off ? 0 : this.notification+1;
this.notification = typeof _value != 'undefined' ? _value : this.notification+1;
jQuery(this.notificationDiv).text(this.notification).toggle(this.notification > 0);
};