From c7a6f6967951c7d8fa6f969781d64e69c740f813 Mon Sep 17 00:00:00 2001 From: Corban-Lee Date: Tue, 23 Jul 2024 20:55:25 +0100 Subject: [PATCH] submit button for settings form --- apps/static/js/home/settings.js | 8 ++++++-- apps/templates/home/includes/settingstab.html | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/static/js/home/settings.js b/apps/static/js/home/settings.js index 988741e..64b95ac 100644 --- a/apps/static/js/home/settings.js +++ b/apps/static/js/home/settings.js @@ -11,6 +11,10 @@ $(document).on("selectedServerChange", async function() { server = getCurrentlyActiveServer(); + updateColourInput("defaultEmbedColour", "#" + server.default_embed_colour); +}); - updateColourInput("defaultEmbedColour", server.default_embed_colour); -}); \ No newline at end of file +$("#serverSettingsForm").on("submit", function(e) { + e.preventDefault(); + alert("not implemented"); +}) \ No newline at end of file diff --git a/apps/templates/home/includes/settingstab.html b/apps/templates/home/includes/settingstab.html index 2b44f90..dad8ff9 100644 --- a/apps/templates/home/includes/settingstab.html +++ b/apps/templates/home/includes/settingstab.html @@ -8,5 +8,8 @@ data-defaultcolour="#3498db"> +
+ +
\ No newline at end of file