show advanced search menuitem in quicksearch menu

In quicksearch menu, display a menuitem after a separator that
opens the advanced search window.
This commit is contained in:
abaevbog 2023-10-03 04:23:24 -04:00 committed by Dan Stillman
parent a37dd2462a
commit 5c337808ab

View file

@ -105,7 +105,14 @@
popup.append(item);
}
let separator = document.createXULElement('menuseparator');
popup.append(separator);
let advancedSearchOption = document.createXULElement('menuitem');
advancedSearchOption.label = Zotero.getString("zotero.toolbar.advancedSearch");
advancedSearchOption.addEventListener("command", () => {
ZoteroPane.openAdvancedSearchWindow();
});
popup.append(advancedSearchOption);
return this._searchModePopup = popup;
}