mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
fix doubled separators
This commit is contained in:
parent
edf113f184
commit
c906c8e0be
1 changed files with 5 additions and 7 deletions
|
|
@ -52,17 +52,17 @@ var Zotero_LocateMenu = new function() {
|
|||
if(availableEngines.length) {
|
||||
_addLocateEngines(locateMenu, availableEngines, true);
|
||||
}
|
||||
|
||||
// add separator at end if necessary
|
||||
if(locateMenu.lastChild.tagName !== "menuseparator") {
|
||||
locateMenu.appendChild(document.createElement("menuseparator"));
|
||||
}
|
||||
} else {
|
||||
// add "no items selected"
|
||||
menuitem = _createMenuItem(Zotero.getString("pane.item.selected.zero"), "no-items-selected");
|
||||
locateMenu.appendChild(menuitem);
|
||||
menuitem.disabled = true;
|
||||
}
|
||||
|
||||
// add separator at end if necessary
|
||||
if(locateMenu.lastChild.tagName !== "menuseparator") {
|
||||
locateMenu.appendChild(document.createElement("menuseparator"));
|
||||
}
|
||||
|
||||
// add installable locate menus, if there are any
|
||||
if(window.Zotero_Browser) {
|
||||
|
|
@ -72,8 +72,6 @@ var Zotero_LocateMenu = new function() {
|
|||
}
|
||||
|
||||
if(installableLocateEngines.length) {
|
||||
locateMenu.appendChild(document.createElement("menuseparator"));
|
||||
|
||||
for each(var locateEngine in installableLocateEngines) {
|
||||
var menuitem = document.createElement("menuitem");
|
||||
menuitem.setAttribute("label", locateEngine.label);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue