forked from extern/egroupware
Fix tab error / sidebox stays when closing the active first tab right after login.
This commit is contained in:
parent
4d9de94469
commit
7e97da50d2
@ -633,8 +633,8 @@ egw_fw_ui_tabs.prototype.removeTab = function(_tab)
|
|||||||
if (this.tabs.length > 0)
|
if (this.tabs.length > 0)
|
||||||
{
|
{
|
||||||
//Check whether there is another tab in the tab history,
|
//Check whether there is another tab in the tab history,
|
||||||
//if not, simply show the first tab in the list.
|
//if not, simply show the first (or next, if tab is first) tab in the list.
|
||||||
var tab = this.tabs[0];
|
var tab = _tab == this.tabs[0] ? this.tabs[1] : this.tabs[0];
|
||||||
if (typeof this.tabHistory[this.tabHistory.length - 1] != 'undefined')
|
if (typeof this.tabHistory[this.tabHistory.length - 1] != 'undefined')
|
||||||
{
|
{
|
||||||
tab = this.tabHistory[this.tabHistory.length - 1];
|
tab = this.tabHistory[this.tabHistory.length - 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user