From: Aleksander Ɓukasz Date: Tue, 10 Dec 2013 21:51:40 +0000 (+0100) Subject: fix: correctly showing current document version number after document got saved X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/2613031b220940f47a67d3536b5cc5581fbf155a fix: correctly showing current document version number after document got saved --- 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);