From eaf5ae36648ec6cbdd96f66617ccc0a780868196 Mon Sep 17 00:00:00 2001 From: Zedifus Date: Sat, 22 Oct 2022 18:50:48 +0100 Subject: [PATCH] Tidy turbo long lines for scroll-less readability --- app/frontend/templates/panel/server_logs.html | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/app/frontend/templates/panel/server_logs.html b/app/frontend/templates/panel/server_logs.html index e188f540..3b1285b8 100644 --- a/app/frontend/templates/panel/server_logs.html +++ b/app/frontend/templates/panel/server_logs.html @@ -114,10 +114,8 @@ console.log("ready!"); get_server_log(); populateWords(); - }); - function scroll() { var logview = $('#virt_console'); if (logview.length) @@ -177,30 +175,39 @@ return; } + // Display filtered word words.push(word); - $("#ignored-words").append("
  • " + word + " 
  • ") + $("#ignored-words").append( + `
  • ` + + "
    " + + `${word} 
  • " + ); // Set word filters in browser cache - localStorage.setItem("words", JSON.stringify(words)) + localStorage.setItem("words", JSON.stringify(words)); }); function deleteItem(item) { let safe_item = sanitize(item); words.splice(words.indexOf(item), 1); - if (safe_item) { - $("#" + safe_item.replaceAll(" ", "-")).remove(); - } + if (safe_item) $("#" + safe_item.replaceAll(" ", "-")).remove(); + liveSearch(); - localStorage.setItem("words", JSON.stringify(words)) + localStorage.setItem("words", JSON.stringify(words)); } function populateWords() { for (let i = 0; i < words.length; i++) { let safe_word = sanitize(words[i]); - $("#ignored-words").append("
  • " + words[i] + " 
  • ") + + $("#ignored-words").append( + `
  • ` + + "
    " + + `${word} 
  • " + ); } } - - {% end %}