From fdfa8052d10b2a68bf4b02733627ade9629484ef Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 17 Apr 2020 03:02:32 -0400 Subject: [PATCH] Disable toolbar buttons properly in read-only views Most importantly, don't allow Add Item by Identifier to create an item in a feed library... The other buttons didn't do anything but still showed an effect on mousedown, which this prevents. --- chrome/content/zotero/zoteroPane.xul | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.xul b/chrome/content/zotero/zoteroPane.xul index e9a501ebcd..606bfdccb7 100644 --- a/chrome/content/zotero/zoteroPane.xul +++ b/chrome/content/zotero/zoteroPane.xul @@ -96,7 +96,8 @@ - + @@ -109,7 +110,7 @@ + onmousedown="if (this.disabled) { event.preventDefault(); return; } Zotero_Lookup.showPanel(this)"/> @@ -136,13 +137,15 @@ - + - +