X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0214643f72c6aaa8e85eaba2ad27f2ca03ca6401..601fd5decd2c36c4612487b8bfeb6df7d94a4ac2:/modules/nodeFamilyTree/nodeFamilyTree.js?ds=sidebyside 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'); } }; };