X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/e6e83eed52400d6e8a6ee6339cbe212c8cac1f90..c66ddb7dbe763b261c7dd4a037239a667f60cd95:/modules/rng/rng.js diff --git a/modules/rng/rng.js b/modules/rng/rng.js index 3f89cd7..9abe00c 100644 --- a/modules/rng/rng.js +++ b/modules/rng/rng.js @@ -130,6 +130,9 @@ return function(sandbox) { savingEnded: function(status) { sandbox.getModule('mainBar').setCommandEnabled('save', true); sandbox.getModule('indicator').clearMessage(); + }, + historyItemAdded: function(item) { + sandbox.getModule('documentHistory').addHistory([item], {animate: true}); } } @@ -248,7 +251,7 @@ return function(sandbox) { eventHandlers.documentHistory = { ready: function() { - sandbox.getModule('documentHistory').setHistory(sandbox.getModule('data').getHistory()); + sandbox.getModule('documentHistory').addHistory(sandbox.getModule('data').getHistory()); addMainTab('Historia', 'history', sandbox.getModule('documentHistory').getView()); } }