Drop htmlPass util since it's only used once

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2025-05-15 09:20:58 +03:00
parent ba0fb42363
commit 4ac3fd060f
2 changed files with 1 additions and 6 deletions

View File

@@ -32,7 +32,7 @@ $(() => {
{ data: null, visible: true, width: "15px" },
{ data: "timestamp", width: "8%", render: utils.renderTimestamp },
{ data: "type", width: "8%" },
{ data: "html", orderable: false, render: utils.htmlPass },
{ data: "html", orderable: false, render: (data, _type) => data },
{ data: null, width: "22px", orderable: false },
],
columnDefs: [

View File

@@ -474,10 +474,6 @@ function renderTimespan(data, type) {
return data;
}
function htmlPass(data, _type) {
return data;
}
// Show only the appropriate buttons
function changeTableButtonStates(table) {
const allRows = table.rows({ filter: "applied" }).data().length;
@@ -706,7 +702,6 @@ globalThis.utils = (function () {
doLogout,
renderTimestamp,
renderTimespan,
htmlPass,
changeTableButtonStates,
getCSSval,
parseQueryString,