mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-09 11:16:45 +00:00
ext6migrate: remove redundant code to set the default active tab
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;
This commit is contained in:
parent
c0b3df6e34
commit
cececa1d65
@ -9,7 +9,7 @@ Ext.define('PVE.panel.Config', {
|
||||
|
||||
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+)?$/;
|
||||
|
||||
@ -67,12 +67,6 @@ Ext.define('PVE.panel.Config', {
|
||||
}),
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user