+ views.diffLayout.setView('left', sandbox.getModule('documentHistory').getView());\r
+ },\r
+ compare: function(ver1, ver2) {\r
+ sandbox.getModule('data').fetchDiff(ver1, ver2);\r
+ },\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
+ eventHandlers.diffViewer = {\r
+ ready: function() {\r
+ views.diffLayout.setView('right', sandbox.getModule('diffViewer').getView());\r