Showing previous versions of a publication
[fnpeditor.git] / modules / rng / rng.js
index cd7122c..3b41394 100644 (file)
@@ -285,6 +285,9 @@ return function(sandbox) {
         },\r
         restoreVersion: function(event) {\r
             sandbox.getModule('data').restoreVersion(event);\r
+        },\r
+        displayVersion: function(event) {\r
+            window.open('/' + gettext('editor') + '/' + sandbox.getModule('data').getDocumentId() + '?version=' + event.version, _.uniqueId());\r
         }\r
     }\r
     \r