Skip to content

Commit

Permalink
add replacing spaces in settings input
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Jun 28, 2024
1 parent 9697716 commit 9104522
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/webpages/HTML_SETTINGS_EDIT.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>Edit Configuration</h1>
<div class="input-group mb-2">
<span class="input-group-text w-50" id="devicenamedesc">Device Name</span>
<input type="text" class="form-control" aria-describedby="devicenamedesc" id="devicename" name="post_deviceName"
maxlength="35" value="%pre_device_name%">
maxlength="35" value="%pre_device_name%" onkeyup="this.value=this.value.replace(/\s+/g,'_');">
</div>
<div class="input-group mb-2">
<span class="input-group-text w-50" id="mqttserverdesc">MQTT Server</span>
Expand All @@ -32,7 +32,7 @@ <h1>Edit Configuration</h1>
<div class="input-group mb-2">
<span class="input-group-text w-50" id="mqtttopicdesc">MQTT Topic</span>
<input type="text" class="form-control" aria-describedby="mqtttopicdesc" id="mqtttopic" name="post_mqttTopic"
maxlength="35" value="%pre_mqtt_topic%">
maxlength="35" value="%pre_mqtt_topic%" onkeyup="this.value=this.value.replace(/\s+/g,'_');">
</div>
<div class="input-group mb-2">
<span class="input-group-text w-50" id="mqttrefreshdesc">MQTT Refresh (sec)</span>
Expand All @@ -42,7 +42,7 @@ <h1>Edit Configuration</h1>
<div class="input-group mb-2">
<span class="input-group-text w-50" id="mqtttriggerdesc">MQTT Data Trigger Path</span>
<input type="text" class="form-control" aria-describedby="mqtttrigerdesc" id="mqtttrigger" maxlength="80"
name="post_mqtttrigger" value="%pre_mqtt_mqtttrigger%">
name="post_mqtttrigger" value="%pre_mqtt_mqtttrigger%" onkeyup="this.value=this.value.replace(/\s+/g,'_');">
</div>
<div class="input-group mb-2">
<span class="input-group-text w-50" id="mqttjsondesc">MQTT Json Style</span>
Expand Down

0 comments on commit 9104522

Please sign in to comment.