[pve-devel] help with ExtJS4

Dietmar Maurer dietmar at proxmox.com
Wed Jun 29 07:21:22 CEST 2011


I just replaced getLastSelected() with getSelection()[0] everywhere - seems to be more correct:

	    var rec = sm.getSelection()[0];

Note: ExtJS4 is quite new and I am still struggling with interface changes - but it gets more stable with each release.

- Dietmar Maurer


> -----Original Message-----
> From: Dietmar Maurer
> Sent: Mittwoch, 29. Juni 2011 06:41
> To: 'Seth Lauzon'; pve-devel at pve.proxmox.com
> Subject: RE: [pve-devel] help with ExtJS4
> 
> Hi Seth,
> 
> just commited that code. You need to use something like:
> 
> 		    var sm = me.getSelectionModel();
> 		    var rec = sm.getLastSelected();
> 		    if (!rec)
> 			return;
> 
> 		    var userid = rec.data.userid;
> 




More information about the pve-devel mailing list