sandbox.getModule('nodePane').setNodeElement(nodeElement);
sandbox.getModule('nodeFamilyTree').setElement(nodeElement);
sandbox.getModule('nodeBreadCrumbs').setNodeElement(nodeElement);
+ sandbox.getModule('documentToolbar').setNodeElement(nodeElement);
},
updateCurrentTextElement: function(textElement) {
sandbox.getModule('nodeFamilyTree').setElement(textElement);
sandbox.getModule('mainBar').setCommandEnabled('save', false);
sandbox.getModule('indicator').showMessage(gettext('Saving...'));
},
- savingEnded: function(status) {
+ savingEnded: function(status, current_version) {
void(status);
sandbox.getModule('mainBar').setCommandEnabled('save', true);
sandbox.getModule('indicator').clearMessage({message:'Dokument zapisany'});
+ sandbox.getModule('mainBar').setVersion(current_version);
},
restoringStarted: function(event) {
sandbox.getModule('mainBar').setCommandEnabled('save', false);