From 5ef47212d7a7d5d8fa2b02674c1f1263b07826d0 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 07 十一月 2024 17:45:41 +0800
Subject: [PATCH] 修改工况bug,新增产品节点时存在
---
web/public/SVGOrigin/Method-Draw-master/editor/lib/contextmenu.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/public/SVGOrigin/Method-Draw-master/editor/lib/contextmenu.js b/web/public/SVGOrigin/Method-Draw-master/editor/lib/contextmenu.js
index 52ba1b3..065103e 100644
--- a/web/public/SVGOrigin/Method-Draw-master/editor/lib/contextmenu.js
+++ b/web/public/SVGOrigin/Method-Draw-master/editor/lib/contextmenu.js
@@ -1,8 +1,8 @@
/**
* Package: svgedit.contextmenu
- *
+ *
* Licensed under the Apache License, Version 2
- *
+ *
* Author: Adam Bender
*/
// Dependencies:
@@ -45,7 +45,7 @@
$("#cmenu_canvas").append("<li class='separator'>");
}
var shortcut = menuItem.shortcut || "";
- $("#cmenu_canvas").append("<li class='disabled'><a href='#" + menuItem.id + "'>"
+ $("#cmenu_canvas").append("<li class='disabled'><a href='#" + menuItem.id + "'>"
+ menuItem.label + "<span class='shortcut'>"
+ shortcut + "</span></a></li>");
}
@@ -53,7 +53,7 @@
var menuItemIsValid = function(menuItem) {
return menuItem && menuItem.id && menuItem.label && menuItem.action && typeof menuItem.action == 'function';
}
-
+
// Defer injection to wait out initial menu processing. This probably goes away once all context
// menu behavior is brought here.
methodDraw.ready(function() {
--
Gitblit v1.9.1