},\r
getHistory: function() {\r
return history;\r
+ },\r
+ fetchDiff: function(ver1, ver2) {\r
+ $.ajax({\r
+ method: 'get',\r
+ url: '/' + gettext('editor') + '/' + document_id + '/diff',\r
+ data: {from: ver1, to: ver2},\r
+ success: function(data) {\r
+ sandbox.publish('diffFetched', {table: data, ver1: ver1, ver2: ver2})\r
+ },\r
+ });\r
}\r
}\r
};\r