app/assets/javascripts/backbone_js/ladas_jstree.js in it-logica-application-backbone-1.0.3 vs app/assets/javascripts/backbone_js/ladas_jstree.js in it-logica-application-backbone-1.0.4

- old
+ new

@@ -67,13 +67,14 @@ "url":self.settings['get_children_url'], // the `data` function is executed in the instance's scope // the parameter is the node being loaded // (may be -1, 0, or undefined when loading the root nodes) "data":function (n) { + var root_id = typeof(self.settings['root_id']) == 'undefined' ? 0 : self.settings['root_id']; // the result is fed to the AJAX request `data` option return { "operation":"get_children", - "id":n.attr ? n.attr("id").replace("node_", "") : 0 + "id":n.attr ? n.attr("id").replace("node_", "") : root_id }; }, // "success" : function (data) { // console.log(object); // console.log(object.find("li a")); \ No newline at end of file