From 8e7feeb8b22f1942f7899640f1795440d6101f0e Mon Sep 17 00:00:00 2001 From: GerhardMitterbaur <63344758+mgerhard74@users.noreply.github.com> Date: Sun, 24 Nov 2024 14:34:36 +0100 Subject: [PATCH] Update cust.js Keine Leerzeichen bei MQTT Feldern entfernen --- data/cust.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/cust.js b/data/cust.js index a9d431b..e7a8dd1 100644 --- a/data/cust.js +++ b/data/cust.js @@ -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));