From 2613031b220940f47a67d3536b5cc5581fbf155a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 10 Dec 2013 22:51:40 +0100 Subject: [PATCH 1/1] fix: correctly showing current document version number after document got saved --- src/editor/modules/rng/rng.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/modules/rng/rng.js b/src/editor/modules/rng/rng.js index bc4ea7f..ff23c9d 100644 --- a/src/editor/modules/rng/rng.js +++ b/src/editor/modules/rng/rng.js @@ -91,10 +91,11 @@ return function(sandbox) { sandbox.getModule('mainBar').setCommandEnabled('save', false); sandbox.getModule('indicator').showMessage(gettext('Saving...')); }, - savingEnded: function(status) { + savingEnded: function(status, current_version) { void(status); sandbox.getModule('mainBar').setCommandEnabled('save', true); sandbox.getModule('indicator').clearMessage({message:'Dokument zapisany'}); + sandbox.getModule('mainBar').setVersion(current_version); }, restoringStarted: function(event) { sandbox.getModule('mainBar').setCommandEnabled('save', false); -- 2.20.1