X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/e8c45077de2d4ada496850fd77fa5035f07f8a4d..61637cd5c0cb56fe9cbadd1066ba37d38604249e:/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()); } }