forked from OpenWF/SpaceNinjaServer
fix(webui): add riven placeholder text
This commit is contained in:
parent
3e460c5728
commit
8728cf3abf
@ -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>
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user