commit 4bc4acb9233523b382e9fb474d45469823b7bdcf
parent df1cdb9754e844c09f14b3e2a86764241f6cd1cb
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 6 Apr 2016 05:10:45 -0400
Hide empty fields in item pane when not editable (e.g., feeds)
A stopgap measure until we have a better design for the item pane
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/itemPane.js b/chrome/content/zotero/itemPane.js
@@ -172,6 +172,10 @@ var ZoteroItemPane = new function() {
if (mode) {
box.mode = mode;
+
+ if (box.mode == 'view') {
+ box.hideEmptyFields = true;
+ }
}
else {
box.mode = 'edit';