diff --git a/editor/contextmenu/jquery.contextMenu.js b/editor/contextmenu/jquery.contextMenu.js index 4883797b..b6187aa0 100755 --- a/editor/contextmenu/jquery.contextMenu.js +++ b/editor/contextmenu/jquery.contextMenu.js @@ -94,8 +94,8 @@ if(jQuery)( function() { }); // When items are selected - $('#' + o.menu).find('A').unbind('click'); - $('#' + o.menu).find('LI:not(.disabled) A').click( function() { + $('#' + o.menu).find('A').unbind('mouseup'); + $('#' + o.menu).find('LI:not(.disabled) A').mouseup( function() { $(document).unbind('click').unbind('keypress'); $(".contextMenu").hide(); // Callback diff --git a/editor/extensions/ext-connector.js b/editor/extensions/ext-connector.js index 2f1990a1..80a23065 100644 --- a/editor/extensions/ext-connector.js +++ b/editor/extensions/ext-connector.js @@ -256,8 +256,9 @@ svgEditor.addExtension("Connector", function(S) { svgCanvas.moveSelectedElements = function() { svgCanvas.removeFromSelection($(conn_sel).toArray()); - mse.apply(this, arguments); + var cmd = mse.apply(this, arguments); updateConnectors(); + return cmd; } se_ns = svgCanvas.getEditorNS(); diff --git a/editor/svg-editor.css b/editor/svg-editor.css index 4a18348d..9b65777b 100644 --- a/editor/svg-editor.css +++ b/editor/svg-editor.css @@ -1217,13 +1217,18 @@ span.zoom_tool { /* Generic context menu styles */ .contextMenu { position: absolute; - width: 120px; z-index: 99999; - border: solid 1px #CCC; - background: #EEE; - padding: 0px; + border: solid 1px rgba(0,0,0,.33); + background: rgba(255,255,255,.95); + padding: 5px 0; margin: 0px; display: none; + font: 14px/17px Lucida Sans, Helvetica, Verdana, sans-serif; + border-radius: 5px; + -moz-border-radius: 5px; + -moz-box-shadow: 2px 5px 10px rgba(0,0,0,.3); + -webkit-box-shadow: 2px 5px 10px rgba(0,0,0,.3); + box-shadow: 2px 5px 10px rgba(0,0,0,.3); } .contextMenu LI { @@ -1233,7 +1238,9 @@ span.zoom_tool { } .contextMenu A { - color: #333; + -moz-user-select: none; + -webkit-user-select: none; + color: #222; text-decoration: none; display: block; line-height: 20px; @@ -1241,17 +1248,17 @@ span.zoom_tool { background-position: 6px center; background-repeat: no-repeat; outline: none; - padding: 1px 5px; - padding-left: 28px; + padding: 0px 15px 1px 20px; } .contextMenu LI.hover A { - background-color: #FFC; + background-color: #2e5dea; + color: white; + cursor: default; } .contextMenu LI.disabled A { - color: #AAA; - cursor: default; + color: #999; } .contextMenu LI.hover.disabled A { @@ -1259,7 +1266,9 @@ span.zoom_tool { } .contextMenu LI.separator { - border-top: solid 1px #CCC; + border-top: solid 1px #E3E3E3; + padding-top: 5px; + margin-top: 5px; } /* diff --git a/editor/svg-editor.html b/editor/svg-editor.html index 35d0639c..e71dec5c 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -667,10 +667,11 @@ script type="text/javascript" src="locale/locale.min.js">