From aa71f91c3a9492dcec1b17ab78efe7902c49aef4 Mon Sep 17 00:00:00 2001 From: redleafnew Date: Sun, 25 Apr 2021 20:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=B8=BA0.0.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome/content/scripts/delitem.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/chrome/content/scripts/delitem.js b/chrome/content/scripts/delitem.js index b7dc01a..67d7254 100644 --- a/chrome/content/scripts/delitem.js +++ b/chrome/content/scripts/delitem.js @@ -196,19 +196,19 @@ Zotero.DelItem = { // showMenuAtt || // showMenuSnap); - pane.document.getElementById( //总菜单 - "zotero-itemmenu-delitem-namehandler" - ).disabled = !( // 总菜单是否可用 - showMenuAtt || - showMenuSnap); - pane.document.getElementById( //删除条目和附件 + /*pane.document.getElementById( //总菜单 + // "zotero-itemmenu-delitem-namehandler" + // ).disabled = !( // 总菜单是否可用 + // showMenuAtt || + // showMenuSnap);*/ + /*pane.document.getElementById( //删除条目和附件 "zotero-itemmenu-delitem" ).disabled = !( // 删除条目和附件是否可用 showMenuAtt || - showMenuSnap); + showMenuSnap);*/ pane.document.getElementById( // 仅删除附件菜单 "zotero-itemmenu-delatt" - ).disabled = !showMenuAtt; // 仅删除附件菜单是否可用 + ).disabled = (!showMenuAtt || showMenuSnap) ; // 仅删除附件菜单是否可用 pane.document.getElementById( // 仅删除快照菜单 "zotero-itemmenu-delsnap"