fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Do not set text on canvas element if it didn't change.
[fnpeditor.git]
/
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
(file)
--- 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) {
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);
},
});