diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index 616d3b373..9192fbc19 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -1025,7 +1025,10 @@ Zotero.Sync.Runner = new function () { var button = doc.createElement('button'); button.setAttribute('label', buttonText); - button.onclick = buttonCallback; + button.onclick = function () { + buttonCallback.call(this); + panel.hidePopup(); + } buttons.appendChild(button); }