If the default activeTab is *undefined* and *not* null, activeTab defaults to 0,
so we don't need to set this explicitely.
dug from ExtJS tabPanel:
activeTab = me.activeTab !== null ? (me.activeTab || 0) : null;
var sp = Ext.state.Manager.getProvider();
- var activeTab;
+ var activeTab; // leaving this undefined means items[0] will be the default tab
var hsregex = /^([^\-\s]+)(-\S+)?$/;
}),
items: items,
listeners: {
- afterrender: function(tp) {
- var first = tp.items.get(0);
- if (first) {
- first.fireEvent('show', first);
- }
- },
tabchange: function(tp, newcard, oldcard) {
var ntab = newcard.itemId;