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);
|
||||
]));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ class rankList{
|
|||
|
||||
clearTable(){
|
||||
//get all non-title table rows
|
||||
const rows = this.table.querySelectorAll("tr.admin-list-entry");
|
||||
const rows = this.table.querySelectorAll("tr.gen-row");
|
||||
|
||||
//for each row
|
||||
rows.forEach((row) => {
|
||||
|
|
@ -161,7 +161,7 @@ class banList{
|
|||
}
|
||||
|
||||
clearList(){
|
||||
const oldRows = this.table.querySelectorAll('tr.admin-list-entry');
|
||||
const oldRows = this.table.querySelectorAll('tr.gen-row');
|
||||
oldRows.forEach((row) => {
|
||||
row.remove();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ class canopyUXUtils{
|
|||
newTableCell(content, firstCol = false){
|
||||
//Create a new 'td' element
|
||||
const cell = document.createElement('td');
|
||||
cell.classList.add("admin-list-entry","admin-list-entry-item");
|
||||
|
||||
//If it's not the first column, mention it!
|
||||
if(!firstCol){
|
||||
|
|
@ -78,7 +77,8 @@ class canopyUXUtils{
|
|||
newTableRow(cellContent){
|
||||
//Create an empty table row to hold the cells
|
||||
const entryRow = document.createElement('tr');
|
||||
entryRow.classList.add("admin-list-entry");
|
||||
|
||||
entryRow.classList.add("gen-row");
|
||||
|
||||
entryRow.appendChild(this.newTableCell(cellContent[0], true));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue