forked from extern/egroupware
Call client-side logout hooks when the logout button is triggered
This commit is contained in:
parent
474796c9bb
commit
10632f886d
@ -403,6 +403,23 @@
|
||||
*/
|
||||
et2_loadingFinished: function() {
|
||||
this.checkTabOverflow();
|
||||
var $logout = jQuery('#topmenu_logout');
|
||||
if (!$logout.hasClass('onLogout'))
|
||||
{
|
||||
$logout.on('click', function(e){
|
||||
e.preventDefault();
|
||||
var apps = Object.keys(framework.applications);
|
||||
for(var i in apps)
|
||||
{
|
||||
if (app[apps[i]] && typeof app[apps[i]].onLogout === "function")
|
||||
{
|
||||
app[apps[i]].onLogout.call(e);
|
||||
}
|
||||
}
|
||||
window.framework.redirect(this.href);
|
||||
});
|
||||
$logout.addClass('onLogout');
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user