diff -r 4f92e61f87ba -r 0628ed75e8d3 client/js/renderer/nodeeditor.js --- a/client/js/renderer/nodeeditor.js Thu Sep 11 16:49:45 2014 +0200 +++ b/client/js/renderer/nodeeditor.js Fri Sep 19 17:54:55 2014 +0200 @@ -22,7 +22,7 @@ '

' + '

<% } %>' + '<% if (options.show_node_editor_creator && node.has_creator) { %>

<%-renkan.translate("Created by:")%> <%- shortenText(node.created_by_title, 25) %>

<% } %>' + - '<% if (options.change_shapes) { %>

' + '' + '' + '' + @@ -101,17 +101,23 @@ _data.description = _this.editor_$.find(".Rk-Edit-Description").val(); } if (_this.options.change_shapes) { - _data.shape = _this.editor_$.find(".Rk-Edit-Shape").val(); - _data.shape_changed = true; + if(_model.get("shape")!==_this.editor_$.find(".Rk-Edit-Shape").val()){ + _data.shape = _this.editor_$.find(".Rk-Edit-Shape").val(); + _data.shape_changed = true; + } } _model.set(_data); _this.redraw(); + // For an unknown reason, we have to set data twice when we change shape, otherwise the image disappears. + if(_data.shape_changed===true){ + _model.set(_data); + } } else { closeEditor(); } }).defer(); }).throttle(500); - + this.editor_$.on("keyup", function(_e) { if (_e.keyCode === 27) { closeEditor();