| Issue 162: | Select node even if it is focused | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Select a lazy loaded node. Its contents screen will show and its children in the tree will show. 2. Click on something else that will take over the contents area that was initially populated by the tree node. 3. Now the tree node will be activated even though its contents are not in focus. I can deal with that. 4. Click the active node to see its contents again. The children will collapse biut the contents wont be shown as if the node was "selected". I suppose it would be nice if the selected code would be called ALWAYS regardless of if it is active. Or is it necessary for me to UNACTIVATE the tree on a click outside of the tree? Using the latest version.
Nov 8, 2010
Project Member
#1
moo...@wwwendt.de
Status:
Waiting
Nov 8, 2010
Duh. onClick is exactly what I was thinking of.
I found that I need to leave the onActivate option, even though there is nothing in the function, otherwise the node would not be activated. So it currently looks like...
onActivate: function(n) {
},
onClick: function(n) {
loadPluginView(n.data.plugin_id, n.data.plugin_type, n.data.plugin_type+'_edit_view', false);
},
So with the onClick I am getting my "preview pane"/"contents screen" as I was hoping. The only problem now is I would like to check if the node is already open, if so, do not collapse the children. Only the plus/minus sign would be doing the collapse in this situation.
Nov 8, 2010
> I found that I need to leave the onActivate option... I would consider this a bug but i could not reproduce it. Could you confirm this one?
Nov 8, 2010
(No comment was entered for this change.)
Labels:
Milestone-Release1.0
Nov 14, 2010
could not reproduce
Status:
Invalid
|