From: Aleksander Łukasz Date: Tue, 27 May 2014 14:16:20 +0000 (+0200) Subject: editor: removing version number from main bar X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/29a9bfd9b61771b41ca18de2a53b672cb3c07cf1 editor: removing version number from main bar --- diff --git a/src/editor/modules/mainBar/mainBar.js b/src/editor/modules/mainBar/mainBar.js index 0563b7c..256111f 100644 --- a/src/editor/modules/mainBar/mainBar.js +++ b/src/editor/modules/mainBar/mainBar.js @@ -40,9 +40,6 @@ return function(sandbox) { trigger.data('originalContent', trigger.html()); trigger.text(disabledText); } - }, - setVersion: function(version) { - view.find('.version').text(version); } }; diff --git a/src/editor/modules/mainBar/template.html b/src/editor/modules/mainBar/template.html index f862c5b..5320525 100644 --- a/src/editor/modules/mainBar/template.html +++ b/src/editor/modules/mainBar/template.html @@ -4,7 +4,6 @@
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() {