forked from extern/egroupware
Fix selecting tab by passing in value
This commit is contained in:
parent
5e425398fa
commit
8b01daa120
@ -248,6 +248,20 @@ var et2_tabbox = et2_valueWidget.extend([et2_IInput],
|
||||
.appendTo(this.tabContainer);
|
||||
}
|
||||
|
||||
// Check for a passed in value
|
||||
if(this.options.value)
|
||||
{
|
||||
this.selected_index = 0;
|
||||
for(var i = 0; i < this.tabData.length; i++)
|
||||
{
|
||||
if(this.tabData[i].id == this.options.value)
|
||||
{
|
||||
this.selected_index = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.setActiveTab(this.selected_index);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user