commit c146adce3829359aef0741bb8f871338b377c3b9 parent e5bf7eff214f730950153ca131cd064393c39859 Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 27 Apr 2016 03:15:29 -0400 Hide sync error panel after custom button is clicked Diffstat:
| M | 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 @@ -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); }