X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b5a1f98a2118706355925314bfe3027ba45464e8..0912ecb847ddbbe4b04b7125389dbba026205750:/modules/nodeBreadCrumbs/nodeBreadCrumbs.js diff --git a/modules/nodeBreadCrumbs/nodeBreadCrumbs.js b/modules/nodeBreadCrumbs/nodeBreadCrumbs.js index 99143bc..4a787f4 100644 --- a/modules/nodeBreadCrumbs/nodeBreadCrumbs.js +++ b/modules/nodeBreadCrumbs/nodeBreadCrumbs.js @@ -22,6 +22,7 @@ return function(sandbox) { }); this.dom.on('click', 'a', function(e) { e.preventDefault(); + var target = $(e.target); sandbox.publish('nodeSelected', target.attr('data-id')); }); }, @@ -44,7 +45,9 @@ return function(sandbox) { return { start: function() { sandbox.publish('ready'); }, getView: function() { return view.dom; }, - setNode: function(node) { view.setNode(node); } + setNode: function(node) { view.setNode(node); }, + highlightNode: function(id) { view.highlightNode(id); }, + dimNode: function(id) { view.dimNode(id); } } }