update counters when downloads initiate from search page

This commit is contained in:
huangjx
2022-04-26 17:49:24 +08:00
parent c82594d99e
commit c42be35566
5 changed files with 27 additions and 6 deletions

View File

@@ -11,6 +11,9 @@ const buttonHandler = (event, type) => {
let url = element.getAttribute("path");
let row, data = {};
let removeRow = true;
if (element.getAttribute("id") == "download-action-button"){
helper.getCounters();
}
if (row = element.closest('.table-row-search')) {
if (element.className == 'icon-clipboard') {
const clippy = new Clipboard(element, row.dataset.link);