OdinaSpb / jstree

Automatically exported from code.google.com/p/jstree
0 stars 0 forks source link

types plugin doesn't seem to work... #986

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Attempt to use the types plugin with custom event handling
2.Events are not treated as expected...

What is the expected output? What do you see instead?
I expect nodes with type "no_select" no have "hover" and "select" behavior, and 
nodes with type "select" to have standard behavior + alert('foo') on select.
None of this happens, Every node just has the standard behavior, even if I can 
see the rel="select" or "no_select" on the LI...

What version of the product are you using? On what browser?
jsTree 1.0-rc3
Firefox 7.0.1

Please provide any additional information below.
My "types" conf :

"types" : {
    "types" : {
        "no_select" : {
            "hover_node" : false,
            "select_node" : false,
        },
        "select" : {
            "select_node" : function() {
                alert("foo");
                return true;
            },
        }
}},

Original issue reported on code.google.com by cfle...@alter-frame.fr on 18 Nov 2011 at 2:10

GoogleCodeExporter commented 9 years ago
Close this issue...
Stupid me...

Original comment by cfle...@alter-frame.fr on 18 Nov 2011 at 2:15

GoogleCodeExporter commented 9 years ago
Tip : don't forget to enable the "types" plugin...

Original comment by cfle...@alter-frame.fr on 18 Nov 2011 at 2:16