mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-05 18:53:28 +02:00
cleanup
This commit is contained in:
parent
3ac9f2c5c2
commit
f5408c4206
1 changed files with 0 additions and 3 deletions
|
@ -5549,7 +5549,6 @@ const updateSortLabel = (header, headerName) => {
|
|||
const isSorted = header.getAttribute(SORTED) === ASCENDING || header.getAttribute(SORTED) === DESCENDING || false;
|
||||
const headerLabel = `${headerName}', sortable column, currently ${isSorted ? `${sortedAscending ? `sorted ${ASCENDING}` : `sorted ${DESCENDING}`}` : "unsorted"}`;
|
||||
const headerButtonLabel = `Click to sort by ${headerName} in ${sortedAscending ? DESCENDING : ASCENDING} order.`;
|
||||
// console.log( header.innerText)
|
||||
header.setAttribute("aria-label", headerLabel);
|
||||
header.querySelector(SORT_BUTTON).setAttribute("title", headerButtonLabel);
|
||||
};
|
||||
|
@ -5679,9 +5678,7 @@ const table = behavior({
|
|||
init(root) {
|
||||
const sortableHeaders = select(SORTABLE_HEADER, root);
|
||||
sortableHeaders.forEach(header => {
|
||||
console.log(header.innerText);
|
||||
createHeaderButton(header, header.innerText);
|
||||
console.log(header.innerText);
|
||||
});
|
||||
const firstSorted = sortableHeaders.filter(header => header.getAttribute(SORTED) === ASCENDING || header.getAttribute(SORTED) === DESCENDING)[0];
|
||||
if (typeof firstSorted === "undefined") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue