commit 110bf42e5fc690bc089b547f6f09eeb287b3bc79 parent 629f4b3cc5b7d278b9439391be1264d3192fcda2 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 19 Feb 2015 17:07:48 -0500 Click a button in the sync error panel should close the panel Diffstat:
| M | 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 @@ -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); }