aboutsummaryrefslogtreecommitdiff
path: root/server/static/js/table.js
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2019-07-08 23:15:32 +0100
committerNiall Sheridan <nsheridan@gmail.com>2019-07-08 23:33:40 +0100
commit8b1ee3e95010681d98d1b31af98f0ce0832cedd2 (patch)
treef28c5345cb62351ff17119c28844f804eb179bfa /server/static/js/table.js
parent46ec5eda8de3580592692a4bd7fb3b54e66fc0f2 (diff)
Fix revocations query and UI
Use `Exec` rather than `Query` to update revoked status `Query` works with MySQL but `Exec` is needed with sqlite Test that the key is revoked Correct column ordering
Diffstat (limited to 'server/static/js/table.js')
-rw-r--r--server/static/js/table.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/static/js/table.js b/server/static/js/table.js
index c1e2fa2..a2c0e20 100644
--- a/server/static/js/table.js
+++ b/server/static/js/table.js
@@ -17,9 +17,9 @@ function reqListener() {
// Index keyid and principals.
row.cells[0].classList = ["keyid"];
row.cells[3].classList = ["principals"];
- row.insertCell(5)
+ row.insertCell(6)
if (!el.revoked) {
- row.cells[5].innerHTML = '<input style="margin:0;" type="checkbox" value="'+ el.key_id + '" name="cert_id" id="cert_id" />';
+ row.cells[6].innerHTML = '<input style="margin:0;" type="checkbox" value="'+ el.key_id + '" name="cert_id" id="cert_id" />';
}
tbody.appendChild(row);
});