Skip to content

Commit

Permalink
Update cust.js
Browse files Browse the repository at this point in the history
Keine Leerzeichen bei MQTT Feldern entfernen
  • Loading branch information
mgerhard74 authored Nov 24, 2024
1 parent 2038334 commit 8e7feeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/cust.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ function doUpdateMQTT() {
progressAnimate('prgbar_mqtt',300);
$(".mqtt").each(function () {
if ($(this).prop('type') == 'checkbox') config_mqtt[this.name] = $(this).prop('checked');
else if ($(this).prop('type') == 'text')config_mqtt[this.name] = this.value.replaceAll(" ","");
else if ($(this).prop('type') == 'text')config_mqtt[this.name] = this.value; // Keine Leerzeichen ersetzen ....= this.value.replaceAll(" ","");
else config_mqtt[this.name] = this.value;
})
websock.send(JSON.stringify(config_mqtt));
Expand Down

0 comments on commit 8e7feeb

Please sign in to comment.