Skip to content

Commit

Permalink
fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
rednblkx committed Nov 17, 2024
1 parent 766727e commit cb34d7f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions data/routes/misc.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,13 @@ <h3 class="webui-tabs-selected-tab" style="margin: 0;width: fit-content;padding:
</div>
</form>
<script>
let alwaysUnlock = "%ALWAYSUNLOCK%" == true;
let alwaysLock = "%ALWAYSLOCK%" == true;
let hwfinish = "%HWFINISH%";
document
.getElementById(`hk-finish-${hwfinish}`)
.setAttribute("checked", "");
document.getElementById('hkfinish').style.backgroundImage = `url(assets/hk-finish-${hwfinish}.webp)`;
if (alwaysUnlock) {
document.getElementById("hk-always-unlock").setAttribute("checked", "");
}
if (alwaysLock) {
document.getElementById("hk-always-lock").setAttribute("checked", "");
}
document.getElementById("hk-always-unlock").selectedIndex = "%ALWAYSUNLOCK%";
document.getElementById("hk-always-lock").selectedIndex = "%ALWAYSLOCK%";
document.getElementById("web-auth-enable").selectedIndex = "%WEBENABLE%";
let form = document.getElementById("misc-config");
async function handleForm(event) {
Expand Down

0 comments on commit cb34d7f

Please sign in to comment.