Finished up cleaning css.
This commit is contained in:
parent
b13e2bde24
commit
ff69762a1f
15 changed files with 87 additions and 98 deletions
|
|
@ -268,7 +268,7 @@ class adminUserBanList{
|
|||
}
|
||||
|
||||
clearBanList(){
|
||||
const oldRows = this.table.querySelectorAll('tr.admin-list-entry');
|
||||
const oldRows = this.table.querySelectorAll('tr.gen-row');
|
||||
oldRows.forEach((row) => {
|
||||
row.remove();
|
||||
});
|
||||
|
|
@ -330,8 +330,8 @@ class adminUserBanList{
|
|||
//append img cell to row
|
||||
entryRow.appendChild(utils.ux.newTableCell(imgNode, true));
|
||||
|
||||
//Append standard cells to row
|
||||
[
|
||||
//Generate and append row to table
|
||||
this.table.appendChild(utils.ux.newTableRow([
|
||||
ban.user.id,
|
||||
ban.user.user,
|
||||
signUpDateString,
|
||||
|
|
@ -339,15 +339,7 @@ class adminUserBanList{
|
|||
expirationDateString,
|
||||
banActionString,
|
||||
(ban.user.deleted ? unbanIcon : [unbanIcon, nukeAccount])
|
||||
].forEach((content)=>{
|
||||
//I don't like repeating myself, and this didn't really need it's own function
|
||||
//though we could make one where each is an object that contains ever property needed and pass it to a mktable function
|
||||
//I just don't see us using it enough to justify it :P
|
||||
entryRow.appendChild(utils.ux.newTableCell(content));
|
||||
});
|
||||
|
||||
//Append row to table
|
||||
this.table.appendChild(entryRow);
|
||||
]));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue