},
getUserActions: function() {
+
if (! this.userActions) {
this.userActions = [
this.action_editProfile,
this.userActions = this.userActions.concat(this.action_changeUserAccount);
}
}
+
+ var regItems = Ext.ux.ItemRegistry.itemMap['Tine.Tinebase.MainMenu.userActions'] || [];
+
+ Ext.each(regItems, function(reg) {
+ var addItem = def = reg.item;
+
+ this.userActions.push(addItem);
+ }, this);
}
return this.userActions;
},
params : {
method : Ext.isObject(Tine.Setup) ? 'Setup.logout' : 'Tinebase.logout'
},
- callback : function(options, Success, response) {
+ callback : function(options, success, response) {
// clear the authenticated mod_ssl session
if (document.all == null) {
if (window.crypto && Ext.isFunction(window.crypto.logout)) {
} else {
document.execCommand('ClearAuthenticationCache');
}
- // remove the event handler
- // the reload() trigers the unload event
+
+ // the reload() triggers the unload event
var redirect = (Tine.Tinebase.registry.get('redirectUrl'));
if (redirect && redirect != '') {
- window.location = Tine.Tinebase.registry.get('redirectUrl');
+ Tine.Tinebase.common.reload({
+ redirectUrl: Tine.Tinebase.registry.get('redirectUrl')
+ });
} else {
- window.location.reload();
+ // registry is cleared before reload
+ Tine.Tinebase.common.reload({});
}
}
});