Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue with item selection event #50

Closed
jacobkuriala opened this issue Jul 14, 2011 · 2 comments
Closed

issue with item selection event #50

jacobkuriala opened this issue Jul 14, 2011 · 2 comments

Comments

@jacobkuriala
Copy link

Hi
i am trying to use the select_node event (for ui plugin) for the opening a url in a new window which is specific to a node.

Everything works fine except in a specific scenario.

  1. open a parent node
  2. select a child node (this causes a new window to open in my case which is expected).
  3. minimize the parent node
    At this point the select_node event of the parent node is fired. (this causes a new window to open again which is not expected).
    so the select event is getting triggered for a minimize event.
@vakata
Copy link
Owner

vakata commented Jul 14, 2011

Read here:
http://www.jstree.com/documentation/ui

OPTION: selected_parent_close

A string (or false). Default is "select_parent".

What action to take when a selected node's parent is closed (making the selected node invisible). Possible values are false - do nothing, "select_parent" - select the closed node's parent and "deselect" - deselect the node.

@vakata vakata closed this as completed Jul 14, 2011
@jacobkuriala
Copy link
Author

that wasint a bug...thank you for the prompt response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants