X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/e8c45077de2d4ada496850fd77fa5035f07f8a4d..73a6ba2accc1ac01c6a525a477f7c99c6ee4f3e6:/modules/rng/rng.js diff --git a/modules/rng/rng.js b/modules/rng/rng.js index cd7122c..3b41394 100644 --- a/modules/rng/rng.js +++ b/modules/rng/rng.js @@ -285,6 +285,9 @@ return function(sandbox) { }, restoreVersion: function(event) { sandbox.getModule('data').restoreVersion(event); + }, + displayVersion: function(event) { + window.open('/' + gettext('editor') + '/' + sandbox.getModule('data').getDocumentId() + '?version=' + event.version, _.uniqueId()); } }