> - 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? _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel