mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 07:19:24 +00:00
33_readingsGroup.pm: added parameter to webCmdFn call to allow colorpicker presets
git-svn-id: https://svn.fhem.de/fhem/trunk@7219 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5ae4779640
commit
1eab4ed2f1
@ -586,9 +586,10 @@ readingsGroup_2html($;$)
|
||||
} else {
|
||||
my $cmd = lookup2($hash->{helper}{commands},$name,$d,$txt);
|
||||
|
||||
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?$/ ) {
|
||||
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?(\s(\S*))?$/ ) {
|
||||
my $set = $1;
|
||||
my $values = $2;
|
||||
$set .= " $3" if( $3 );
|
||||
|
||||
if( !$values ) {
|
||||
my %extPage = ();
|
||||
@ -748,9 +749,10 @@ readingsGroup_2html($;$)
|
||||
if( !$devStateIcon ) {
|
||||
$cmd = lookup2($hash->{helper}{commands},$name,$n,$v) if( !$devStateIcon );
|
||||
|
||||
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?$/ ) {
|
||||
if( $cmd && $cmd =~ m/^([\w-]*):(\S*)?(\s(\S*))?$/ ) {
|
||||
my $set = $1;
|
||||
my $values = $2;
|
||||
$set .= " $3" if( $3 );
|
||||
|
||||
if( !$values ) {
|
||||
my %extPage = ();
|
||||
|
Loading…
Reference in New Issue
Block a user