diff --git a/public/red/history.js b/public/red/history.js index 281c064c3..ea8ed42ae 100644 --- a/public/red/history.js +++ b/public/red/history.js @@ -68,6 +68,7 @@ RED.history = function() { } RED.editor.validateNode(ev.node); ev.node.dirty = true; + ev.node.changed = ev.changed; } RED.view.dirty(ev.dirty); RED.view.redraw(); diff --git a/public/red/ui/editor.js b/public/red/ui/editor.js index 68516ce8b..5e55d88bc 100644 --- a/public/red/ui/editor.js +++ b/public/red/ui/editor.js @@ -216,9 +216,10 @@ RED.editor = function() { var removedLinks = updateNodeProperties(editing_node); if (changed) { + var wasChanged = editing_node.changed; editing_node.changed = true; RED.view.dirty(true); - RED.history.push({t:'edit',node:editing_node,changes:changes,links:removedLinks,dirty:wasDirty}); + RED.history.push({t:'edit',node:editing_node,changes:changes,links:removedLinks,dirty:wasDirty,changed:wasChanged}); } editing_node.dirty = true; validateNode(editing_node);