table-sort-js
Advanced tools
Comparing version 1.18.2 to 1.18.3
{ | ||
"name": "table-sort-js", | ||
"version": "1.18.2", | ||
"version": "1.18.3", | ||
"description": "A JavaScript client-side HTML table sorting library with no dependencies required.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -386,3 +386,4 @@ /* | ||
function clearArrows(arrowUp = "▲", arrowDown = "▼") { | ||
function clearArrows(arrowUp, arrowDown, initialArrow = "↕") { | ||
th.innerHTML = th.innerHTML.replace(initialArrow, ""); | ||
th.innerHTML = th.innerHTML.replace(arrowUp, ""); | ||
@@ -519,9 +520,8 @@ th.innerHTML = th.innerHTML.replace(arrowDown, ""); | ||
const desc = th.classList.contains("order-by-desc"); | ||
const arrow = { up: " ▲", down: " ▼" }; | ||
const initialArrow = " ↕"; | ||
const arrow = { up: " ↑", down: " ↓" }; | ||
const fillValue = "!X!Y!Z!"; | ||
if (desc && table.hasClass.tableArrows) { | ||
th.insertAdjacentText("beforeend", arrow.down); | ||
} else if (table.hasClass.tableArrows) { | ||
th.insertAdjacentText("beforeend", arrow.up); | ||
if (table.hasClass.tableArrows) { | ||
th.insertAdjacentText("beforeend", initialArrow); | ||
} | ||
@@ -528,0 +528,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29965