diff --git a/files/assets/js/default.js b/files/assets/js/default.js index 4c2296462..f53dfcf84 100644 --- a/files/assets/js/default.js +++ b/files/assets/js/default.js @@ -1,7 +1,3 @@ -function formkey() { - return document.getElementById("formkey").innerHTML; -} - function autoExpand (field) { xpos=window.scrollX; ypos=window.scrollY; diff --git a/files/assets/js/header.js b/files/assets/js/header.js index 6cecfc373..a68e2f757 100644 --- a/files/assets/js/header.js +++ b/files/assets/js/header.js @@ -1,3 +1,7 @@ +function formkey() { + return document.getElementById("formkey").innerHTML; +} + document.addEventListener("DOMContentLoaded", function(){ var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); tooltipTriggerList.map(function(element){ diff --git a/files/assets/js/settings_blocks.js b/files/assets/js/settings_blocks.js index d5e2485a5..162b454c0 100644 --- a/files/assets/js/settings_blocks.js +++ b/files/assets/js/settings_blocks.js @@ -1,7 +1,3 @@ -function formkey() { - return document.getElementById("formkey").innerHTML; -} - function block_user() { var usernameField = document.getElementById("exile-username"); diff --git a/files/assets/js/settings_profile.js b/files/assets/js/settings_profile.js index 21b635a81..632e728c1 100644 --- a/files/assets/js/settings_profile.js +++ b/files/assets/js/settings_profile.js @@ -1,7 +1,3 @@ -function formkey() { - return document.getElementById("formkey").innerHTML; -} - function post(url) { var xhr = new XMLHttpRequest(); xhr.open("POST", url, true); diff --git a/files/templates/default.html b/files/templates/default.html index 528eaf950..c81561c22 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -290,7 +290,7 @@ {% if v %} - + {% endif %} diff --git a/files/templates/header.html b/files/templates/header.html index 277031b73..4c34bbab8 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -213,7 +213,7 @@ - +