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:
parent
a37dd2462a
commit
5c337808ab
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue