- documentSummary.init(sandbox.getConfig().documentSummaryView);
- documentSummary.render(sandbox.getModule('data').getDocumentProperties());
+ documentSummary.init(sandbox.getConfig().documentSummaryView, wlxmlDocument);
+ documentSummary.render();
documentSummary.setDraftField(usingDraft ? (draftTimestamp || '???') : '-');
views.currentNodePaneLayout.appendView(documentSummary.dom);
documentSummary.setDraftField(usingDraft ? (draftTimestamp || '???') : '-');
views.currentNodePaneLayout.appendView(documentSummary.dom);
sandbox.getModule('indicator').clearMessage({message: msg[what]});
if(status === 'success' && what === 'remote') {
sandbox.getModule('indicator').clearMessage({message: msg[what]});
if(status === 'success' && what === 'remote') {
documentSummary.setDraftField('-');
sandbox.getModule('mainBar').setCommandEnabled('drop-draft', false);
sandbox.getModule('mainBar').setCommandEnabled('save', false);
documentSummary.setDraftField('-');
sandbox.getModule('mainBar').setCommandEnabled('drop-draft', false);
sandbox.getModule('mainBar').setCommandEnabled('save', false);
documentReverted: function(version) {
documentIsDirty = false;
sandbox.getModule('indicator').clearMessage({message:'Wersja ' + version + ' przywrócona'});
documentReverted: function(version) {
documentIsDirty = false;
sandbox.getModule('indicator').clearMessage({message:'Wersja ' + version + ' przywrócona'});