mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Return the promise if available
This commit is contained in:
parent
45180fa2d2
commit
511b2c2b20
@ -726,10 +726,9 @@ var fw_base = (function(){ "use strict"; return Class.extend(
|
||||
if (_app != this.activeApp)
|
||||
{
|
||||
// tab not yet loaded, load it now
|
||||
if (!_app.browser.currentLocation && !_app.browser.iframe)
|
||||
if (!_app.browser || !_app.browser.currentLocation && !_app.browser.iframe)
|
||||
{
|
||||
this.applicationTabNavigate(_app, _app.indexUrl);
|
||||
return;
|
||||
return this.applicationTabNavigate(_app, _app.indexUrl);
|
||||
}
|
||||
this.activeApp = _app;
|
||||
|
||||
|
@ -269,7 +269,7 @@
|
||||
*/
|
||||
setActiveApp: function(_app)
|
||||
{
|
||||
this._super.apply(this, arguments);
|
||||
var result = this._super.apply(this, arguments);
|
||||
|
||||
if (_app == _app.parentFw.activeApp)
|
||||
{
|
||||
@ -296,6 +296,8 @@
|
||||
framework.getToggleSidebarState();
|
||||
framework.activeApp.browser.callResizeHandler();
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user