mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
updateLocaleList: Append menuitem to menupopup, not parent menulist
Appending to the menulist sort of worked - the text of the added menuitem appeared in the menulist label, albeit off to the right - but the item didn't actually show in the menu and didn't get removed on subsequent calls.
This commit is contained in:
parent
ba5d34876e
commit
fbc82f687d
1 changed files with 1 additions and 1 deletions
|
|
@ -598,7 +598,7 @@ Zotero.Styles = new function() {
|
|||
menuitem.setAttribute('label', selectLocale);
|
||||
menuitem.setAttribute('value', selectLocale);
|
||||
menuitem.setAttributeNS('zotero:', 'customLocale', true);
|
||||
menulist.append(menuitem);
|
||||
menulist.menupopup.append(menuitem);
|
||||
}
|
||||
|
||||
return menulist.value = selectLocale;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue