fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
integration wip: editor_init_callback
[fnpeditor.git]
/
src
/
editor
/
modules
/
documentToolbar
/
documentToolbar.js
diff --git
a/src/editor/modules/documentToolbar/documentToolbar.js
b/src/editor/modules/documentToolbar/documentToolbar.js
index
7fbf6c1
..
d903483
100644
(file)
--- a/
src/editor/modules/documentToolbar/documentToolbar.js
+++ b/
src/editor/modules/documentToolbar/documentToolbar.js
@@
-36,6
+36,12
@@
return function(sandbox) {
params.meta = meta;
}
+ if(command === 'undo' || command === 'redo') {
+ params.callback = function(disable) {
+ btn.attr('disabled', !disable);
+ };
+ }
+
sandbox.publish('command', command, params);
});
},