From c146adce3829359aef0741bb8f871338b377c3b9 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 27 Apr 2016 03:15:29 -0400 Subject: [PATCH] Hide sync error panel after custom button is clicked --- chrome/content/zotero/xpcom/sync/syncRunner.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/sync/syncRunner.js b/chrome/content/zotero/xpcom/sync/syncRunner.js index ee7e6672e2..aeb768f715 100644 --- a/chrome/content/zotero/xpcom/sync/syncRunner.js +++ b/chrome/content/zotero/xpcom/sync/syncRunner.js @@ -1169,7 +1169,10 @@ Zotero.Sync.Runner_Module = function (options = {}) { var button = doc.createElement('button'); button.setAttribute('label', buttonText); - button.onclick = buttonCallback; + button.onclick = function () { + buttonCallback(); + panel.hidePopup(); + }; buttons.appendChild(button); }