From: Aleksander Ɓukasz Date: Thu, 6 Jun 2013 15:01:06 +0000 (+0200) Subject: Fixing node selection via bread crumbs X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/ab5fdbdbf582607e4d3072b03c6aaff383653674?ds=sidebyside;hp=2bb0e6a7d19dc695f82373e568e6959c6b995eca Fixing node selection via bread crumbs --- diff --git a/modules/nodeBreadCrumbs/nodeBreadCrumbs.js b/modules/nodeBreadCrumbs/nodeBreadCrumbs.js index 1db8a22..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')); }); },