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