[pve-devel] [PATCH manager] fix ceph tabs switching

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Apr 13 08:31:47 CEST 2016


On Tue, Apr 12, 2016 at 05:28:58PM +0200, Dietmar Maurer wrote:
> > when switching from one node to another, the activate event
> > is not fired on the ceph tabs, so start the store update with afterrender
> 
> I am confused now, because Emmanuel told me
> that afterrender does not work, and he removed the code

Do you mean in general? Because I did use afterRender in one of my
patches, but not as a "listener". And that worked. I'd find it weird if
you could do that in two places?

> we had inside the panel/Config.js panel:
> 
> 	    listeners: {
> 		afterrender: function(tp) {
> 		    var first =  tp.items.get(0);
> 		    if (first) {
> 			first.fireEvent('show', first);
> 		    }
> 		},
> 
> We replaced that generated 'show' event everywhere with 'activate'.
> 
> Or are those Ceph tabs special in any way?



More information about the pve-devel mailing list