mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Drop htmlPass util since it's only used once
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -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: [
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user