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 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')); }); },