fix(webui): add riven placeholder text
All checks were successful
Build / build (22) (push) Successful in 42s
Build / build (18) (push) Successful in 1m12s
Build / build (20) (push) Successful in 1m6s
Build Docker image / docker (push) Successful in 35s

This commit is contained in:
Sainan 2025-03-18 10:00:04 +01:00
parent 3e460c5728
commit 8728cf3abf
2 changed files with 4 additions and 1 deletions

View File

@ -373,7 +373,7 @@
<option value="LotusShotgunRandomModRare">LotusShotgunRandomModRare</option> <option value="LotusShotgunRandomModRare">LotusShotgunRandomModRare</option>
<option value="PlayerMeleeWeaponRandomModRare">PlayerMeleeWeaponRandomModRare</option> <option value="PlayerMeleeWeaponRandomModRare">PlayerMeleeWeaponRandomModRare</option>
</select> </select>
<textarea id="addriven-fingerprint" class="form-control mb-3" data-loc-placeholder_"mods.fingerprint"></textarea> <textarea id="addriven-fingerprint" class="form-control mb-3" data-loc-placeholder="mods_fingerprint"></textarea>
<button class="btn btn-primary" style="margin-right: 5px" type="submit" data-loc="general_addButton"></button> <button class="btn btn-primary" style="margin-right: 5px" type="submit" data-loc="general_addButton"></button>
<a href="riven-tool/" target="_blank" data-loc="mods_fingerprintHelp"></a> <a href="riven-tool/" target="_blank" data-loc="mods_fingerprintHelp"></a>
</form> </form>

View File

@ -118,6 +118,9 @@ function updateLocElements() {
document.querySelectorAll("[data-loc]").forEach(elm => { document.querySelectorAll("[data-loc]").forEach(elm => {
elm.innerHTML = loc(elm.getAttribute("data-loc")); 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) { function setActiveLanguage(lang) {