fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Removing unnecessary tests from wlxml.js
[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
..
75fcc72
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);
});
},