[pve-devel] [PATCH manager 3/4] check if tabs exist before selecting them
Dietmar Maurer
dietmar at proxmox.com
Wed Jun 1 16:51:08 CEST 2016
> - if (res && res[1]) {
> + if (res && res[1] && Ext.isArray(me.items)) {
> + me.items.forEach(function(item) {
> + if (item.itemId === res[1]) {
> + activeTab = res[1];
> + }
> + });
> + } else if (res && res[1] && me.items && me.items.itemId === res[1]) {
> activeTab = res[1];
> }
Isn't there a better way (ExtJS function) to lookup items?
More information about the pve-devel
mailing list