@@ -6,7 +6,7 @@ <h1>Edit Configuration</h1>
66 < div class ="input-group mb-2 ">
77 < span class ="input-group-text w-50 " id ="devicenamedesc "> Device Name</ span >
88 < input type ="text " class ="form-control " aria-describedby ="devicenamedesc " id ="devicename " name ="post_deviceName "
9- maxlength ="35 " value ="%pre_device_name% ">
9+ maxlength ="35 " value ="%pre_device_name% " onkeyup =" this.value=this.value.replace(/\s+/g,'_'); " >
1010 </ div >
1111 < div class ="input-group mb-2 ">
1212 < span class ="input-group-text w-50 " id ="devicequantitydesc "> Device Quantity</ span >
@@ -36,7 +36,7 @@ <h1>Edit Configuration</h1>
3636 < div class ="input-group mb-2 ">
3737 < span class ="input-group-text w-50 " id ="mqtttopicdesc "> MQTT Topic</ span >
3838 < input type ="text " class ="form-control " aria-describedby ="mqtttopicdesc " id ="mqtttopic " name ="post_mqttTopic "
39- maxlength ="35 " value ="%pre_mqtt_topic% ">
39+ maxlength ="35 " value ="%pre_mqtt_topic% " onkeyup =" this.value=this.value.replace(/\s+/g,'_'); " >
4040 </ div >
4141 < div class ="input-group mb-2 ">
4242 < span class ="input-group-text w-50 " id ="mqttrefreshdesc "> MQTT Refresh (sec)</ span >
@@ -46,7 +46,7 @@ <h1>Edit Configuration</h1>
4646 < div class ="input-group mb-2 ">
4747 < span class ="input-group-text w-50 " id ="mqtttriggerdesc "> MQTT Data Trigger Path</ span >
4848 < input type ="text " class ="form-control " aria-describedby ="mqtttrigerdesc " id ="mqtttrigger " maxlength ="80 "
49- name ="post_mqtttrigger " value ="%pre_mqtt_mqtttrigger% ">
49+ name ="post_mqtttrigger " value ="%pre_mqtt_mqtttrigger% " onkeyup =" this.value=this.value.replace(/\s+/g,'_'); " >
5050 </ div >
5151 < div class ="input-group mb-2 ">
5252 < span class ="input-group-text w-50 " id ="mqttjsondesc "> MQTT Json Style</ span >
0 commit comments