Sha256: c567b913bafd98a4b2e4794c43c5a117025191814b7b2205882abb5c7a7aa83c
Contents?: true
Size: 527 Bytes
Versions: 2
Compression:
Stored size: 527 Bytes
Contents
(function ($) { $.jstree.plugin("helpers", { _fn : { get_path: function(obj, id_mode) { var p = [], _this = this; obj = this.get_node(obj); if (obj === -1 || !obj || !obj.length) { return false; } obj.parentsUntil(".jstree", "li").each(function () { p.push( id_mode ? this.id : _this.get_text(this) ); }); p.reverse(); p.push( id_mode ? obj.attr("id") : this.get_text(obj) ); return p; } } }) })(jQuery);
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jstree-rails-0.0.4 | plugins/jstree.helpers.js |
jstree-rails-0.0.4 | vendor/assets/javascripts/jstree/jstree.helpers.js |