Hide sync error panel after custom button is clicked
This commit is contained in:
parent
e5bf7eff21
commit
c146adce38
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue