X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/6b27d5301b4995add87d5734e6de2d974007a196..84f2fdcdf9bd8e62fbecaa9a47e7418cc8a4f858:/src/editor/modules/rng/rng.js diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index de30e64..dba2d2f 100644 --- a/src/editor/modules/rng/rng.js +++ b/src/editor/modules/rng/rng.js @@ -145,7 +145,6 @@ return function(sandbox) { sandbox.getModule('indicator').clearMessage({message: msg[what]}); if(status === 'success' && what === 'remote') { - sandbox.getModule('mainBar').setVersion(data.version); documentSummary.setDraftField('-'); sandbox.getModule('mainBar').setCommandEnabled('drop-draft', false); sandbox.getModule('mainBar').setCommandEnabled('save', false); @@ -169,13 +168,11 @@ return function(sandbox) { documentReverted: function(version) { documentIsDirty = false; sandbox.getModule('indicator').clearMessage({message:'Wersja ' + version + ' przywrócona'}); - sandbox.getModule('mainBar').setVersion(version); } }; eventHandlers.mainBar = { ready: function() { - sandbox.getModule('mainBar').setVersion(sandbox.getModule('data').getDocument().properties.version); views.mainLayout.setView('topPanel', sandbox.getModule('mainBar').getView()); }, 'cmd.save': function() {