fix(webui): move "add maxed" after "add" button
All checks were successful
Build / build (pull_request) Successful in 1m0s

Apparently the onclick event is being fired even when pressing enter. I originally moved it to make alt+enter add it maxed, but now even just pressing enter adds it maxed which is not what I wanted. :|
This commit is contained in:
Sainan 2025-07-08 12:54:37 +02:00
parent 1dffcf979f
commit f4ebbaf21f

View File

@ -527,8 +527,8 @@
<form class="input-group mb-3" onsubmit="doAcquireMod();return false;"> <form class="input-group mb-3" onsubmit="doAcquireMod();return false;">
<input class="form-control" id="mod-count" type="number" value="1"/> <input class="form-control" id="mod-count" type="number" value="1"/>
<input class="form-control w-50" id="mod-to-acquire" list="datalist-mods" /> <input class="form-control w-50" id="mod-to-acquire" list="datalist-mods" />
<button class="btn btn-success" onclick="window.maxed=true" type="submit" data-loc="mods_addMax"></button>
<button class="btn btn-primary" type="submit" data-loc="general_addButton"></button> <button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
<button class="btn btn-success" onclick="window.maxed=true" data-loc="mods_addMax"></button>
</form> </form>
<table class="table table-hover w-100"> <table class="table table-hover w-100">
<tbody id="mods-list"></tbody> <tbody id="mods-list"></tbody>