added title attribute to action button

This commit is contained in:
huangjx
2021-10-07 10:40:54 +08:00
parent 74a905e37f
commit e8534e4f70
2 changed files with 6 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ class DBConn
public function updateStatus($gid, $status = 1)
{
$query = $this->queryBuilder;
$query->update('ncdownloader_info')
$query->update($this->table)
->set("status", $query->createNamedParameter($status))
->where('gid = :gid')
->setParameter('gid', $gid);

View File

@@ -93,7 +93,7 @@ class ncTable {
return;
}
let data = value.data || '';
container.appendChild(this.createActionButton(value.name, value.path,data));
container.appendChild(this.createActionButton(value.name, value.path, data));
})
rowItem.appendChild(container);
row.appendChild(rowItem);
@@ -132,6 +132,10 @@ class ncTable {
button.classList.add("icon-" + name);
button.setAttribute("path", path);
button.setAttribute("data", data);
if (name == 'refresh') {
name = 'Redownload';
}
button.setAttribute("title", helper.ucfirst(name));
return button;
}