jquery - jsTree TYPE plugin events are ignored -


i unable jstree "types" plugin work in capacity @ all, , there no errors firing anywhere can detect.

1.) referred so question have node open/close mouseclick, function not ever executed.

2.) "types" plugin jstree plugin documentation says this:

to set node's type can use set_type or supply type property node's data.

i suspect it's setup problem because neither of "types" settings working, yet "contextmenu" plugin work, appears scripts in place , i'm doing wrong "types"

has else encountered this, or see i'm going wrong?

html

<div id="jstree"></div> <script>     $(function () {         $('#jstree').jstree({             "types" : {                 "types" : {                     "series_type" : {                         "icon" : {                             "image" : "images/seriesnode.png"                         }                     },                     "default" : {                         "select_node" : function(e) {                             console.info(e);                             this.toggle_node(e);                             return false;                         }                     }                 }             },             "plugins" : [ "types", "ui" , "contextmenu" ],             "contextmenu": { "items": {} },             "core" : {                 'data' : {                     'url' : 'series_tree_data.php'                 }             }         });     }); </script> 

json data returned ajax call:

[     {   "id":"series_123120",         "parent":"#",         "text":"1945 - year changed world",         "type":"series_type",         "state":{"opened":true}     },     {   "id":"title_2003150",         "parent":"series_123120",         "text":"beginning of end",     },     {   "id":"segment_3006200",         "parent":"title_2003150",         "text":"full program",     },     {   "id":"file_552973",         "parent":"segment_3006200",         "text":"1945_part_1.flv",         "icon":false     } ] 

from see in documentation @ http://www.jstree.com/api/#/?f=$.jstree.defaults.types , theres no mention of "select_node", seem portion should not work @ all. i'd check see if have latest library.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -