Hide sync error panel after custom button is clicked

This commit is contained in:
Dan Stillman 2016-04-27 03:15:29 -04:00
parent e5bf7eff21
commit c146adce38

View file

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