X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0990bc1dc7fad5165148a8993901138de9e22d0e..2546c9dabe14b77b9e97c81efb2403eb93e9f79d:/src/editor/modules/data/data.js diff --git a/src/editor/modules/data/data.js b/src/editor/modules/data/data.js index a8144cb..7c9077f 100644 --- a/src/editor/modules/data/data.js +++ b/src/editor/modules/data/data.js @@ -106,8 +106,9 @@ return function(sandbox) { 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); }, });