some ideas
[fnpeditor.git] / src / editor / modules / data / data.js
index a8144cb..7c9077f 100644 (file)
@@ -106,8 +106,9 @@ return function(sandbox) {
                     url: '/' + gettext('editor') + '/' + document_id + '/revert',
                     data: JSON.stringify(options),
                     success: function(data) {
                     url: '/' + gettext('editor') + '/' + document_id + '/revert',
                     data: JSON.stringify(options),
                     success: function(data) {
-                        document_version = data.version;
+                        document_version = data.current_version;
                         reloadHistory();
                         reloadHistory();
+                        wlxmlDocument.loadXML(data.document);
                         sandbox.publish('documentReverted', data);
                     },
                 });
                         sandbox.publish('documentReverted', data);
                     },
                 });