1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-03 23:35:49 +01:00

Minor :downloads styling updates.

This commit is contained in:
Kris Maglione
2011-01-16 23:34:47 -05:00
parent 7b34e1497e
commit f17fb77bcb
4 changed files with 23 additions and 16 deletions

View File

@@ -133,6 +133,12 @@ var Download = Class("Download", {
updateStatus: function updateStatus() {
if (this.alive)
this.nodes.row.setAttribute("active", "true");
else
this.nodes.row.removeAttribute("active");
this.nodes.row.setAttribute("status", this.status);
this.nodes.state.textContent = util.capitalize(this.status);
for (let [command, enabled] in Iterator(this.allowed))
this.nodes[command].collapsed = !enabled;