X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/0990bc1dc7fad5165148a8993901138de9e22d0e..25dc71d387b1ce0d0fbcdc6e24b462c1f1480ce8:/src/editor/modules/data/data.js?ds=sidebyside 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); }, });