X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0214643f72c6aaa8e85eaba2ad27f2ca03ca6401..0fc9c9339c521db96bdd3043e64d8610d51a0e13:/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'); } }; };