- sandbox.getModule('indicator').clearMessage({message:'Dokument zapisany'});
- sandbox.getModule('mainBar').setVersion(current_version);
+ sandbox.getModule('indicator').clearMessage({message: msg[what]});
+ if(status === 'success' && what === 'remote') {
+ sandbox.getModule('mainBar').setVersion(data.version);
+ documentSummary.render(data);
+ documentSummary.setDraftField('-');
+ sandbox.getModule('mainBar').setCommandEnabled('drop-draft', false);
+ }
+ if(what === 'local') {
+ documentSummary.setDraftField(data.timestamp);
+ sandbox.getModule('mainBar').setCommandEnabled('drop-draft', true);
+ }