Action Disable
Posted: Wed May 11, 2016 6:13 pm
Hello !
I use WebApp 18.0.0
I need disable action when there is changes in editor.
Actions does not have property Enable.
I tried write something like this, but it not works:
How could I do this?
I use WebApp 18.0.0
I need disable action when there is changes in editor.
Actions does not have property Enable.
I tried write something like this, but it not works:
Code: Select all
goog.events.listen(workspace, sync.api.Workspace.EventType.EDITOR_LOADED, function(e) {
window.editor = e.editor;
goog.events.listen(window.editor, sync.api.Editor.EventTypes.DIRTY_STATUS_CHANGED, function(e) {
CheckInAction.isEnabled = function() {
return !e.isDirty;
};
});
});