Skip to content

Commit

Permalink
Remove "empty" tag
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Jun 4, 2024
1 parent 728e654 commit 1264e10
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions Protest/Front/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,16 +574,11 @@ class List extends Window {
for (let i = 0; i < this.columnsElements.length; i++) {
if (!(this.columnsElements[i].textContent in entry)) continue;

const newAttr = document.createElement("div");
let value = entry[this.columnsElements[i].textContent].v;
if (value.length > 0) {
newAttr.textContent = value;
}
else {
newAttr.textContent = "empty";
newAttr.style.color = "#666";
newAttr.style.fontStyle = "italic";
}
if (value.length === 0) continue;

const newAttr = document.createElement("div");
newAttr.textContent = value;
element.appendChild(newAttr);

if (i === 0) {
Expand All @@ -598,9 +593,7 @@ class List extends Window {

element.onclick = ()=> {
if (this.selected) this.selected.style.backgroundColor = "";

this.args.select = element.getAttribute("id");

this.selected = element;
element.style.backgroundColor = "var(--clr-select)";
};
Expand Down

0 comments on commit 1264e10

Please sign in to comment.