diff -r 7d95ace8c08f -r f53a7999ae7b client/js/paper-renderer.js --- a/client/js/paper-renderer.js Thu Jun 13 16:13:35 2013 +0200 +++ b/client/js/paper-renderer.js Fri Jun 14 12:36:32 2013 +0200 @@ -962,6 +962,12 @@ this.editor_$.find(".Rk-CloseX").click(closeEditor); + this.editor_$.find(".Rk-Edit-Goto").click(function() { + if (!_model.get("uri")) { + return false; + } + }); + if (this.renderer.isEditable()) { var onFieldChange = Rkns._(function() { @@ -972,6 +978,7 @@ }; if (_this.options.show_node_editor_uri) { _data.uri = _this.editor_$.find(".Rk-Edit-URI").val(); + _this.editor_$.find(".Rk-Edit-Goto").attr("href",_data.uri || "#"); } if (_this.options.show_node_editor_image) { _data.image = _this.editor_$.find(".Rk-Edit-Image").val(); @@ -1146,6 +1153,11 @@ paper.view.draw(); }; this.editor_$.find(".Rk-CloseX").click(closeEditor); + this.editor_$.find(".Rk-Edit-Goto").click(function() { + if (!_model.get("uri")) { + return false; + } + }); if (this.renderer.isEditable()) { @@ -1158,7 +1170,7 @@ if (_this.options.show_edge_editor_uri) { _data.uri = _this.editor_$.find(".Rk-Edit-URI").val(); } - _this.editor_$.find(".Rk-Edit-Goto").attr("href",_data.uri); + _this.editor_$.find(".Rk-Edit-Goto").attr("href",_data.uri || "#"); _model.set(_data); paper.view.draw(); } else {