X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/9d74ca302ea182d336853aa2578cc455c32556be..e6e83eed52400d6e8a6ee6339cbe212c8cac1f90:/modules/rng/rng.js diff --git a/modules/rng/rng.js b/modules/rng/rng.js index 992d601..3f89cd7 100644 --- a/modules/rng/rng.js +++ b/modules/rng/rng.js @@ -108,7 +108,7 @@ return function(sandbox) { ready: function() { views.mainLayout.setView('mainView', views.mainTabs.getAsView()); - _.each(['sourceEditor', 'documentCanvas', 'documentToolbar', 'nodePane', 'metadataEditor', 'nodeFamilyTree', 'nodeBreadCrumbs', 'mainBar', 'indicator'], function(moduleName) { + _.each(['sourceEditor', 'documentCanvas', 'documentToolbar', 'nodePane', 'metadataEditor', 'nodeFamilyTree', 'nodeBreadCrumbs', 'mainBar', 'indicator', 'documentHistory'], function(moduleName) { sandbox.getModule(moduleName).start(); }); }, @@ -246,6 +246,13 @@ return function(sandbox) { } } + eventHandlers.documentHistory = { + ready: function() { + sandbox.getModule('documentHistory').setHistory(sandbox.getModule('data').getHistory()); + addMainTab('Historia', 'history', sandbox.getModule('documentHistory').getView()); + } + } + /* api */ return {