Label fix in user grant tables

This commit is contained in:
L. Bradley LaBoon 2020-03-14 00:33:19 -04:00
parent 6a029d0ed6
commit a020009c47

View File

@ -79,7 +79,7 @@ import { settings, elements, apiGet, apiPut, parseParams, setupHeader } from "/g
var none = document.createElement("td"); var none = document.createElement("td");
var noneLabel = document.createElement("label"); var noneLabel = document.createElement("label");
noneLabel.for = type + "-none-" + perm.id; noneLabel.htmlFor = type + "-none-" + perm.id;
var noneBox = document.createElement("input"); var noneBox = document.createElement("input");
noneBox.id = type + "-none-" + perm.id; noneBox.id = type + "-none-" + perm.id;
noneBox.className = elements.grantBox; noneBox.className = elements.grantBox;
@ -91,7 +91,7 @@ import { settings, elements, apiGet, apiPut, parseParams, setupHeader } from "/g
var ro = document.createElement("td"); var ro = document.createElement("td");
var roLabel = document.createElement("label"); var roLabel = document.createElement("label");
roLabel.for = type + "-ro-" + perm.id; roLabel.htmlFor = type + "-ro-" + perm.id;
var roBox = document.createElement("input"); var roBox = document.createElement("input");
roBox.id = type + "-ro-" + perm.id; roBox.id = type + "-ro-" + perm.id;
roBox.className = elements.grantBox; roBox.className = elements.grantBox;
@ -103,7 +103,7 @@ import { settings, elements, apiGet, apiPut, parseParams, setupHeader } from "/g
var rw = document.createElement("td"); var rw = document.createElement("td");
var rwLabel = document.createElement("label"); var rwLabel = document.createElement("label");
rwLabel.for = type + "-rw-" + perm.id; rwLabel.htmlFor = type + "-rw-" + perm.id;
var rwBox = document.createElement("input"); var rwBox = document.createElement("input");
rwBox.id = type + "-rw-" + perm.id; rwBox.id = type + "-rw-" + perm.id;
rwBox.className = elements.grantBox; rwBox.className = elements.grantBox;