Archipelago/WebHostLib/templates/weightedOptions
NewSoupVi f6e3113af6
WebHost: Fix "Add" button for custom option values causing a weird redirect (#3518)
* WebHost: Fix "Add" button for Progression Balancing causing a weird redirect

This "add" button is part of a form, which causes it to submit the form, because the default type for a button is "submit".

This PR changes the type of the button to "button", which causes it to not submit the form and just execute its normal effect.

(An alternative would be `event.preventDefault()` but that seems less clean to me, but also I'm not a HTML/JS dev)

* There's also multiple.
2024-06-13 04:39:16 -04:00
..
macros.html WebHost: Fix "Add" button for custom option values causing a weird redirect (#3518) 2024-06-13 04:39:16 -04:00
weightedOptions.html Webhost: Allow Option Groups to specify whether they start collapsed (#3370) 2024-05-24 01:18:21 -04:00