From 8728cf3abf25bdabb76da4d53bd9c56633fb8e2c Mon Sep 17 00:00:00 2001 From: Sainan Date: Tue, 18 Mar 2025 10:00:04 +0100 Subject: [PATCH] fix(webui): add riven placeholder text --- static/webui/index.html | 2 +- static/webui/script.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/static/webui/index.html b/static/webui/index.html index 540378d9..bc5e9d49 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -373,7 +373,7 @@ - + diff --git a/static/webui/script.js b/static/webui/script.js index a506d19d..b46b8fee 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -118,6 +118,9 @@ function updateLocElements() { document.querySelectorAll("[data-loc]").forEach(elm => { elm.innerHTML = loc(elm.getAttribute("data-loc")); }); + document.querySelectorAll("[data-loc-placeholder]").forEach(elm => { + elm.placeholder = loc(elm.getAttribute("data-loc-placeholder")); + }); } function setActiveLanguage(lang) {