Skip to content

Commit

Permalink
Merge pull request #18 from Neuroquila-n8fall/emergency-fix
Browse files Browse the repository at this point in the history
Emergency fix
  • Loading branch information
Neuroquila-n8fall authored Oct 7, 2022
2 parents 9a55993 + e66cc16 commit ae3b171
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## v0.9.3
Emergency fix for web UI: I forgot to commit the working version of the frontend pages so the forms actually work.

## v0.9.2
Some fixes and improvements have been made.
For example the Reboot button didn't actually reboot the system.
Expand Down
4 changes: 2 additions & 2 deletions data/frontend/auxsensors.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ <h4>Configured Sensors</h4>
loadSensors(true);
addSensorAddressInputs();

_("add-sensor-form").addEventListener("onsubmit", addSensor);
_("aux-form").addEventListener("onsubmit", saveSensors);
_("add-sensor-form").addEventListener('submit', addSensor);
_("aux-form").addEventListener('submit', saveSensors);

function Sensor() {
this.Label = "";
Expand Down
2 changes: 1 addition & 1 deletion data/frontend/canbus.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ <h5>Mixed Circuit</h5>
loadNavigation();
loadCanAddresses();

_("canbus-form").addEventListener("onsubmit", saveCanbusData);
_("canbus-form").addEventListener('submit', saveCanbusData);

async function loadCanAddresses() {
const form = document.forms["canbus-form"];
Expand Down
2 changes: 1 addition & 1 deletion data/frontend/firmware.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@ <h3>Update Firmware & Filesystem</h3>
<script type="text/javascript">
loadNavigation();

_("upload_form").addEventListener("onsubmit",startUpdate);
_("upload_form").addEventListener('submit',startUpdate);
</script>
</body>
2 changes: 1 addition & 1 deletion data/frontend/general.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h3>General Settings</h3>
getTz();
loadGeneralConfig();

_("general-form").addEventListener("onsubmit", sendGeneralConfig);
_("general-form").addEventListener('submit', sendGeneralConfig);

async function loadGeneralConfig() {
let form = document.forms["general-form"];
Expand Down
2 changes: 1 addition & 1 deletion data/frontend/leds.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h3>LED Configuration</h3>
loadNavigation();
loadConfig();

_("led-form").addEventListener("onsubmit", saveConfig);
_("led-form").addEventListener('submit', saveConfig);

async function loadConfig() {
const form = document.forms["led-form"];
Expand Down
4 changes: 2 additions & 2 deletions data/frontend/mqtt.html
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ <h4>Topics Configuration</h4>
loadMqttConfig();
loadMqttTopicsConfig();

_("mqtt-form").addEventListener("onsubmit", sendMqttConfig);
_("mqtt-topics-form").addEventListener("onsubmit", sendMqttTopicsConfig);
_("mqtt-form").addEventListener('submit', sendMqttConfig);
_("mqtt-topics-form").addEventListener('submit', sendMqttTopicsConfig);

async function loadMqttConfig() {
const form = document.forms["mqtt-form"];
Expand Down
2 changes: 1 addition & 1 deletion data/frontend/wifi.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ <h3>Found Networks</h3>
<script type="text/javascript">
loadWifiConfig();

_("wifi-form").addEventListener("onsubmit", sendWifiConfig);
_("wifi-form").addEventListener('submit', sendWifiConfig);

async function loadWifiConfig()
{
Expand Down

0 comments on commit ae3b171

Please sign in to comment.