url: '/' + gettext('editor') + '/' + document_id + '/revert',
data: JSON.stringify(options),
success: function(data) {
- document_version = data.version;
+ document_version = data.current_version;
reloadHistory();
+ wlxmlDocument.loadXML(data.document);
sandbox.publish('documentReverted', data);
},
});