fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removing old visualEditor module leftovers
[fnpeditor.git]
/
modules
/
nodeBreadCrumbs
/
nodeBreadCrumbs.js
diff --git
a/modules/nodeBreadCrumbs/nodeBreadCrumbs.js
b/modules/nodeBreadCrumbs/nodeBreadCrumbs.js
index
99143bc
..
4a787f4
100644
(file)
--- a/
modules/nodeBreadCrumbs/nodeBreadCrumbs.js
+++ b/
modules/nodeBreadCrumbs/nodeBreadCrumbs.js
@@
-22,6
+22,7
@@
return function(sandbox) {
});
\r
this.dom.on('click', 'a', function(e) {
\r
e.preventDefault();
\r
});
\r
this.dom.on('click', 'a', function(e) {
\r
e.preventDefault();
\r
+ var target = $(e.target);
\r
sandbox.publish('nodeSelected', target.attr('data-id'));
\r
});
\r
},
\r
sandbox.publish('nodeSelected', target.attr('data-id'));
\r
});
\r
},
\r
@@
-44,7
+45,9
@@
return function(sandbox) {
return {
\r
start: function() { sandbox.publish('ready'); },
\r
getView: function() { return view.dom; },
\r
return {
\r
start: function() { sandbox.publish('ready'); },
\r
getView: function() { return view.dom; },
\r
- setNode: function(node) { view.setNode(node); }
\r
+ setNode: function(node) { view.setNode(node); },
\r
+ highlightNode: function(id) { view.highlightNode(id); },
\r
+ dimNode: function(id) { view.dimNode(id); }
\r
}
\r
}
\r
\r
}
\r
}
\r
\r