mirror of
https://github.com/zotero/zotero.git
synced 2026-09-27 01:21:27 +00:00
Add missing icons in context menus on Windows/Linux
* Add missing icon for "My Library" in the "Copy To" menu in cases where there are no other libraries in that menu * Add icon to the "New Collection..." option in the item context menu
This commit is contained in:
parent
9b1950c9ea
commit
cc691abeee
1 changed files with 3 additions and 0 deletions
|
|
@ -4197,6 +4197,7 @@ var ZoteroPane = new function()
|
|||
myLibraryMenuItem.setAttribute("label", myLibrary.name);
|
||||
myLibraryMenuItem.setAttribute("image", myLibrary.treeViewImage);
|
||||
myLibraryMenuItem.setAttribute("value", myLibrary.treeViewID);
|
||||
myLibraryMenuItem.classList.add('menuitem-iconic');
|
||||
myLibraryMenuItem.addEventListener("command", (event) => {
|
||||
if (event.target.tagName == 'menuitem') {
|
||||
this.copyCollection(myLibrary);
|
||||
|
|
@ -4241,6 +4242,8 @@ var ZoteroPane = new function()
|
|||
|
||||
let newCollectionMenuitem = document.createXULElement('menuitem');
|
||||
document.l10n.setAttributes(newCollectionMenuitem, 'menu-new-collection');
|
||||
newCollectionMenuitem.classList.add('menuitem-iconic');
|
||||
newCollectionMenuitem.classList.add('zotero-menuitem-new-collection');
|
||||
newCollectionMenuitem.addEventListener('command', () => this.addItemsToCollection(items, null, true));
|
||||
let separator = document.createXULElement('menuseparator');
|
||||
popup.replaceChildren(newCollectionMenuitem, separator);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue