2
0
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:
justme-1968 2014-12-15 08:51:23 +00:00
parent 5ae4779640
commit 1eab4ed2f1

View File

@ -586,9 +586,10 @@ readingsGroup_2html($;$)
} else { } else {
my $cmd = lookup2($hash->{helper}{commands},$name,$d,$txt); 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 $set = $1;
my $values = $2; my $values = $2;
$set .= " $3" if( $3 );
if( !$values ) { if( !$values ) {
my %extPage = (); my %extPage = ();
@ -748,9 +749,10 @@ readingsGroup_2html($;$)
if( !$devStateIcon ) { if( !$devStateIcon ) {
$cmd = lookup2($hash->{helper}{commands},$name,$n,$v) 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 $set = $1;
my $values = $2; my $values = $2;
$set .= " $3" if( $3 );
if( !$values ) { if( !$values ) {
my %extPage = (); my %extPage = ();