From 110bf42e5fc690bc089b547f6f09eeb287b3bc79 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 19 Feb 2015 17:07:48 -0500 Subject: [PATCH] Click a button in the sync error panel should close the panel --- chrome/content/zotero/xpcom/sync.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }