From 05faf1474e39ae79d12bb4a23330b3231225f6f7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 13 Aug 2024 00:16:19 +0200 Subject: Allow HTML syntax in action button labels. --- public/common/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/common/client.js b/public/common/client.js index 2ce568f..b39642c 100644 --- a/public/common/client.js +++ b/public/common/client.js @@ -662,7 +662,7 @@ function action_button_with_argument(verb, noun, label) { if (!button) { button = document.createElement("button") button.id = id - button.textContent = label + button.innerHTML = label button.addEventListener("click", evt => send_action(verb, noun)) document.getElementById("actions").prepend(button) } @@ -681,7 +681,7 @@ function action_button_imp(action, label, callback) { if (!button) { button = document.createElement("button") button.id = id - button.textContent = label + button.innerHTML = label button.addEventListener("click", callback) document.getElementById("actions").prepend(button) } -- cgit v1.2.3