aboutsummaryrefslogtreecommitdiff
path: root/server/static/js/table.js
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2016-09-11 21:53:59 +0100
committerNiall Sheridan <nsheridan@gmail.com>2016-09-11 21:53:59 +0100
commit8cdcbdc005d3d14fc72c62d4708a5ca8778a2c77 (patch)
tree541e0497dfab7e475b468c2c143977e87d336f4d /server/static/js/table.js
parentfcd99315094618c20c06ece2eefe89cc751bb5b1 (diff)
Invert check for revoked cert
Diffstat (limited to 'server/static/js/table.js')
-rw-r--r--server/static/js/table.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/static/js/table.js b/server/static/js/table.js
index da0da39..8dcf0f0 100644
--- a/server/static/js/table.js
+++ b/server/static/js/table.js
@@ -16,8 +16,9 @@ function reqListener() {
// Index keyid and principals.
row.cells[0].classList = ["keyid"];
row.cells[3].classList = ["principals"];
- if (el.revoked) {
- row.insertCell(5).innerHTML = '<input style="margin:0;" type="checkbox" value="'+ el.key_id + '" name="cert_id" id="cert_id" />';
+ row.insertCell(5)
+ if (!el.revoked) {
+ row.cells[5].innerHTML = '<input style="margin:0;" type="checkbox" value="'+ el.key_id + '" name="cert_id" id="cert_id" />';
}
tbody.appendChild(row);
});