mirror of
https://github.com/pi-hole/web.git
synced 2026-04-20 00:39:52 +01:00
JS: Enforce camelcase.
It's a common convention to use camelcase for variable names. Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
var token = $("#token").text();
|
||||
|
||||
function render_timestamp(data, type) {
|
||||
function renderTimestamp(data, type) {
|
||||
// Display and search content
|
||||
if (type === "display" || type === "filter") {
|
||||
return utils.datetime(data);
|
||||
@@ -23,7 +23,7 @@ function multline(input) {
|
||||
return input.split(",").join("\n");
|
||||
}
|
||||
|
||||
function render_message(data, type, row) {
|
||||
function renderMessage(data, type, row) {
|
||||
// Display and search content
|
||||
switch (row.type) {
|
||||
case "REGEX":
|
||||
@@ -73,9 +73,9 @@ $(document).ready(function () {
|
||||
order: [[0, "asc"]],
|
||||
columns: [
|
||||
{ data: "id", visible: false },
|
||||
{ data: "timestamp", width: "8%", render: render_timestamp },
|
||||
{ data: "timestamp", width: "8%", render: renderTimestamp },
|
||||
{ data: "type", width: "8%" },
|
||||
{ data: "message", orderable: false, render: render_message },
|
||||
{ data: "message", orderable: false, render: renderMessage },
|
||||
{ data: "blob1", visible: false },
|
||||
{ data: "blob2", visible: false },
|
||||
{ data: "blob3", visible: false },
|
||||
|
||||
Reference in New Issue
Block a user