www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit e1355cef2ff11d607b32b54d0869d52e47adabc2
parent 0f519dc7579ea9e04d5b5dfa50c61623bdf49c2d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 23 May 2015 19:07:14 -0400

Show only "Export Files..." in context menu for My Publications

Diffstat:
Mchrome/content/zotero/zoteroPane.js | 19+++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)

diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js @@ -2296,9 +2296,6 @@ var ZoteroPane = new function() else if (collectionTreeRow.isTrash()) { show = [m.emptyTrash]; } - else if (collectionTreeRow.isGroup()) { - show = [m.newCollection, m.newSavedSearch, m.sep1, m.showDuplicates, m.showUnfiled, m.sep2, m.exportFile]; - } else if (collectionTreeRow.isDuplicates() || collectionTreeRow.isUnfiled()) { show = [ m.deleteCollection @@ -2314,10 +2311,20 @@ var ZoteroPane = new function() else if (collectionTreeRow.isBucket()) { show = [m.refreshCommonsBucket]; } + else if (collectionTreeRow.isPublications()) { + show = [m.exportFile]; + } // Library - else - { - show = [m.newCollection, m.newSavedSearch, m.sep1, m.showDuplicates, m.showUnfiled, m.sep2, m.exportFile]; + else { + show = [ + m.newCollection, + m.newSavedSearch, + m.sep1, + m.showDuplicates, + m.showUnfiled, + m.sep2, + m.exportFile + ]; } // Disable some actions if user doesn't have write access