Skip to content

Commit

Permalink
Update to 1.18.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeWannacott committed Dec 21, 2023
1 parent 30c6cca commit b2c8747
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
Binary file modified browser-extensions/chrome/table-sort-js.zip
Binary file not shown.
6 changes: 5 additions & 1 deletion browser-extensions/chrome/table-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
const [getTagTable] = getHTMLTables();
const columnIndexAndTableRow = {};
for (let table of getTagTable) {
if (table.classList.contains("table-sort")) {
if (
table.classList.contains("table-sort") &&
!table.classList.contains("table-processed")
) {
makeTableSortable(table);
}
}
Expand Down Expand Up @@ -114,6 +117,7 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
}

function makeTableSortable(sortableTable) {
sortableTable.classList.add("table-processed");
const table = {
bodies: getTableBodies(sortableTable),
theads: sortableTable.querySelectorAll("thead"),
Expand Down
Binary file modified browser-extensions/firefox/table-sort-js.zip
Binary file not shown.
6 changes: 5 additions & 1 deletion browser-extensions/firefox/table-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
const [getTagTable] = getHTMLTables();
const columnIndexAndTableRow = {};
for (let table of getTagTable) {
if (table.classList.contains("table-sort")) {
if (
table.classList.contains("table-sort") &&
!table.classList.contains("table-processed")
) {
makeTableSortable(table);
}
}
Expand Down Expand Up @@ -114,6 +117,7 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
}

function makeTableSortable(sortableTable) {
sortableTable.classList.add("table-processed");
const table = {
bodies: getTableBodies(sortableTable),
theads: sortableTable.querySelectorAll("thead"),
Expand Down
6 changes: 5 additions & 1 deletion npm/table-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
const [getTagTable] = getHTMLTables();
const columnIndexAndTableRow = {};
for (let table of getTagTable) {
if (table.classList.contains("table-sort")) {
if (
table.classList.contains("table-sort") &&
!table.classList.contains("table-processed")
) {
makeTableSortable(table);
}
}
Expand Down Expand Up @@ -114,6 +117,7 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
}

function makeTableSortable(sortableTable) {
sortableTable.classList.add("table-processed");
const table = {
bodies: getTableBodies(sortableTable),
theads: sortableTable.querySelectorAll("thead"),
Expand Down
7 changes: 5 additions & 2 deletions public/table-sort.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
const [getTagTable] = getHTMLTables();
const columnIndexAndTableRow = {};
for (let table of getTagTable) {
if (table.classList.contains("table-sort") && !table.classList.contains("table-processed")) {
if (
table.classList.contains("table-sort") &&
!table.classList.contains("table-processed")
) {
makeTableSortable(table);
}
}
Expand Down Expand Up @@ -113,7 +116,7 @@ function tableSortJs(testingTableSortJS = false, domDocumentWindow = document) {
}
}

function makeTableSortable(sortableTable) {
function makeTableSortable(sortableTable) {
sortableTable.classList.add("table-processed");
const table = {
bodies: getTableBodies(sortableTable),
Expand Down

0 comments on commit b2c8747

Please sign in to comment.