From 49711ccad139a04e7a9eebb1b58a70cc8dbfc552 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Sun, 20 Oct 2024 14:37:06 +0100 Subject: [PATCH] update sub table on submit --- apps/home/static/home/js/tabs/styles.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/home/static/home/js/tabs/styles.js b/apps/home/static/home/js/tabs/styles.js index 3af2b4c..39b0e2e 100644 --- a/apps/home/static/home/js/tabs/styles.js +++ b/apps/home/static/home/js/tabs/styles.js @@ -252,6 +252,8 @@ $(styleModalId).on("submit", async function(event) { $(styleTableId), "/api/message-styles/" ).then(async () => { + // Reload sub data to reflect style changes + $(subTableId).trigger("doDataLoad"); await loadSubModalOptions( $(subModalId).find('[data-field="message_style"]'), `/api/message-styles/?server=${selectedServer.id}`