Click a button in the sync error panel should close the panel

This commit is contained in:
Dan Stillman 2015-02-19 17:07:48 -05:00
parent 629f4b3cc5
commit 110bf42e5f

View File

@ -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);
}