From 7f89326bfc1832c6b6d3255ccb67142835cf9b35 Mon Sep 17 00:00:00 2001
From: rudolfkoenig <>
Date: Sat, 21 May 2016 19:25:03 +0000
Subject: [PATCH] 01_FHEMWEB.pm/fhemweb.js: add :textField-longNL modifier
(Forum #53393)
git-svn-id: https://svn.fhem.de/fhem/trunk@11489 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
fhem/FHEM/01_FHEMWEB.pm | 2 ++
fhem/www/pgm2/fhemweb.js | 7 ++++---
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm
index 108dca1b6..c3cde1fc6 100755
--- a/fhem/FHEM/01_FHEMWEB.pm
+++ b/fhem/FHEM/01_FHEMWEB.pm
@@ -3509,6 +3509,8 @@ FW_widgetOverride($$)
is displayed.
if the modifier is ":textField-long", is like textField, but upon
clicking on the input field a textArea (60x25) will be opened.
+ if the modifier is ":textField-longNL", the behaviour is the same
+ as :textField-long, but no label is displayed.
if the modifier is of the form
":slider,<min>,<step>,<max>[,1]", then a
diff --git a/fhem/www/pgm2/fhemweb.js b/fhem/www/pgm2/fhemweb.js
index 9dfae5e84..00cb325ec 100644
--- a/fhem/www/pgm2/fhemweb.js
+++ b/fhem/www/pgm2/fhemweb.js
@@ -793,14 +793,15 @@ FW_createTextField(elName, devName, vArr, currVal, set, params, cmd)
if(vArr.length != 1 ||
(vArr[0] != "textField" &&
vArr[0] != "textFieldNL" &&
- vArr[0] != "textField-long") ||
+ vArr[0] != "textField-long" &&
+ vArr[0] != "textField-longNL") ||
(params && params.length))
return undefined;
- var is_long = (vArr[0] == "textField-long");
+ var is_long = (vArr[0].indexOf("long") > 0);
var newEl = $("").get(0);
- if(set && set != "state" && vArr[0] != "textFieldNL")
+ if(set && set != "state" && vArr[0].indexOf("NL") < 0)
$(newEl).append(set+":");
$(newEl).append('');
var inp = $(newEl).find("input").get(0);