From 29a9bfd9b61771b41ca18de2a53b672cb3c07cf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 27 May 2014 16:16:20 +0200 Subject: [PATCH] editor: removing version number from main bar --- src/editor/modules/mainBar/mainBar.js | 3 --- src/editor/modules/mainBar/template.html | 1 - src/editor/modules/rng/rng.js | 3 --- 3 files changed, 7 deletions(-) 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() { -- 2.20.1