XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

fix(webui): move "add maxed" after "add" button (#2441)

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. :| Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2441 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

a35572e3
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified static/webui/index.html +1 -1
@@ -528,8 +528,8 @@
528 528 <form class="input-group mb-3" onsubmit="doAcquireMod();return false;">
529 529 <input class="form-control" id="mod-count" type="number" value="1"/>
530 530 <input class="form-control w-50" id="mod-to-acquire" list="datalist-mods" />
531 <button class="btn btn-success" onclick="window.maxed=true" type="submit" data-loc="mods_addMax"></button>
532 531 <button class="btn btn-primary" type="submit" data-loc="general_addButton"></button>
532 <button class="btn btn-success" onclick="window.maxed=true" data-loc="mods_addMax"></button>
533 533 </form>
534 534 <table class="table table-hover w-100">
535 535 <tbody id="mods-list"></tbody>