From f99fdac4b052c7f4d1e6d6ed15d999284f754729 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Tue, 2 Nov 2021 18:02:04 -0500 Subject: [PATCH] remove javascript error log trying to load hljs from non config pages --- WebfrontCore/Views/Configuration/Files.cshtml | 8 +++++++- WebfrontCore/wwwroot/js/configuration.js | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/WebfrontCore/Views/Configuration/Files.cshtml b/WebfrontCore/Views/Configuration/Files.cshtml index a8e76f07d..e7757bea0 100644 --- a/WebfrontCore/Views/Configuration/Files.cshtml +++ b/WebfrontCore/Views/Configuration/Files.cshtml @@ -50,9 +50,15 @@ { - + + } + \ No newline at end of file diff --git a/WebfrontCore/wwwroot/js/configuration.js b/WebfrontCore/wwwroot/js/configuration.js index e9e818fd8..8cc0e8a48 100644 --- a/WebfrontCore/wwwroot/js/configuration.js +++ b/WebfrontCore/wwwroot/js/configuration.js @@ -73,8 +73,7 @@ return false; }); - - hljs.highlightAll(); + $('.edit-file' ).on('keydown .editable', function(e){ if(e.keyCode === 9) { document.execCommand ( 'styleWithCSS', true, null )