www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 335c3d0b983a41a07d297fcf0a046c0b62088308
parent ce5328cbc4f918e2f0062b31cbe39ee0ad82a1ff
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 20 Nov 2016 03:01:41 -0500

Fix error creating context menu for independent save button

Diffstat:
Mchrome/content/zotero/icon.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/icon.js b/chrome/content/zotero/icon.js @@ -200,7 +200,7 @@ function addIcon() { const kNSXUL = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; button.setAttribute('disabled', 'true'); button.setAttribute('type', 'menu-button'); - let menupopup = document.createElementNS(kNSXUL, "menupopup"); + let menupopup = button.ownerDocument.createElementNS(kNSXUL, "menupopup"); menupopup.setAttribute('onpopupshowing', "Zotero_Browser.onStatusPopupShowing(event)"); button.appendChild(menupopup); }