X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0214643f72c6aaa8e85eaba2ad27f2ca03ca6401..b5a1f98a2118706355925314bfe3027ba45464e8:/modules/nodeFamilyTree/nodeFamilyTree.js diff --git a/modules/nodeFamilyTree/nodeFamilyTree.js b/modules/nodeFamilyTree/nodeFamilyTree.js index 68ab8f0..e061277 100644 --- a/modules/nodeFamilyTree/nodeFamilyTree.js +++ b/modules/nodeFamilyTree/nodeFamilyTree.js @@ -55,6 +55,12 @@ return function(sandbox) { }, getView: function() { return view.dom; + }, + highlightNode: function(id) { + view.dom.find('a[data-id="'+id+'"]').addClass('rng-common-hoveredNode'); + }, + dimNode: function(id) { + view.dom.find('a[data-id="'+id+'"]').removeClass('rng-common-hoveredNode'); } }; };