fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
editor: dropping a working draft
[fnpeditor.git]
/
src
/
editor
/
modules
/
mainBar
/
mainBar.js
diff --git
a/src/editor/modules/mainBar/mainBar.js
b/src/editor/modules/mainBar/mainBar.js
index
ecf6812
..
e2e09c3
100644
(file)
--- a/
src/editor/modules/mainBar/mainBar.js
+++ b/
src/editor/modules/mainBar/mainBar.js
@@
-8,7
+8,7
@@
define([
return function(sandbox) {
var view = $(_.template(template)());
return function(sandbox) {
var view = $(_.template(template)());
- view.find('
button
').click(function(e) {
+ view.find('
[data-cmd]
').click(function(e) {
e.preventDefault();
sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));
});
e.preventDefault();
sandbox.publish('cmd.' + $(e.target).attr('data-cmd'));
});