Skip to content

Commit

Permalink
Merge pull request #1561 from ajaxorg/issues/several
Browse files Browse the repository at this point in the history
* Fixes wrong if in save.js
  • Loading branch information
fjakobs committed May 17, 2012
2 parents adc9797 + 80939a0 commit 3d5cd81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins-client/ext.save/save.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ module.exports = ext.register("ext/save/save", {
if (!at.undo_ptr)
at.undo_ptr = at.$undostack[0];
var node = e.page.$doc.getNode();
if (node && at.undo_ptr && at.$undostack[at.$undostack.length-1] !== at.undo_ptr
if (node && (at.undo_ptr && at.$undostack[at.$undostack.length-1] !== at.undo_ptr
|| !at.undo_ptr && node.getAttribute("changed") == 1
&& e.page.$doc.getValue()) {
&& e.page.$doc.getValue())) {

ext.initExtension(_self);

Expand Down

0 comments on commit 3d5cd81

Please sign in to comment.