+ sandbox.getModule('indicator').clearMessage({message:'Dokument zapisany'});\r
+ },\r
+ restoringStarted: function(event) {\r
+ sandbox.getModule('mainBar').setCommandEnabled('save', false);\r
+ sandbox.getModule('indicator').showMessage(gettext('Restoring version ' + event.version + '...'));\r
+ },\r
+ historyItemAdded: function(item) {\r
+ sandbox.getModule('documentHistory').addHistory([item], {animate: true});\r
+ },\r
+ diffFetched: function(diff) {\r
+ sandbox.getModule('diffViewer').setDiff(diff);\r
+ },\r
+ documentReverted: function(event) {\r
+ commands.resetDocument(event.document, 'revert');\r
+ sandbox.getModule('mainBar').setCommandEnabled('save', true);\r
+ sandbox.getModule('indicator').clearMessage({message:'Wersja ' + event.version + ' przywrócona'});\r