added title attribute to action button
This commit is contained in:
@@ -103,7 +103,7 @@ class DBConn
|
|||||||
public function updateStatus($gid, $status = 1)
|
public function updateStatus($gid, $status = 1)
|
||||||
{
|
{
|
||||||
$query = $this->queryBuilder;
|
$query = $this->queryBuilder;
|
||||||
$query->update('ncdownloader_info')
|
$query->update($this->table)
|
||||||
->set("status", $query->createNamedParameter($status))
|
->set("status", $query->createNamedParameter($status))
|
||||||
->where('gid = :gid')
|
->where('gid = :gid')
|
||||||
->setParameter('gid', $gid);
|
->setParameter('gid', $gid);
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class ncTable {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let data = value.data || '';
|
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);
|
rowItem.appendChild(container);
|
||||||
row.appendChild(rowItem);
|
row.appendChild(rowItem);
|
||||||
@@ -132,6 +132,10 @@ class ncTable {
|
|||||||
button.classList.add("icon-" + name);
|
button.classList.add("icon-" + name);
|
||||||
button.setAttribute("path", path);
|
button.setAttribute("path", path);
|
||||||
button.setAttribute("data", data);
|
button.setAttribute("data", data);
|
||||||
|
if (name == 'refresh') {
|
||||||
|
name = 'Redownload';
|
||||||
|
}
|
||||||
|
button.setAttribute("title", helper.ucfirst(name));
|
||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user