[pve-devel] how to get currently selected node in ExtJS?
    Stefan Priebe - Profihost AG 
    s.priebe at profihost.ag
       
    Mon Apr 22 09:25:19 CEST 2013
    
    
  
Am 22.04.2013 06:55, schrieb Dietmar Maurer:
>>> All people i was talking to wanted the node they're currently selected
>>> to be preselected in the create wizard. They all created vms on the
>>> wrong nodes ;-)
>>
>> In Workspace.js, we call setContent() every time the user selects someting.
>>
>> Maybe you can use that to store the last selected node into a global var?
> 
> Or maybe it is better/easier to do that in PVE.node.Config
i would like todo it in pveResourceTree => selectionchange so i can
store the node even if someone selects a VM.
I just don't know how to introduce a global var...
Thanks!
Stefan
    
    
More information about the pve-devel
mailing list