mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
01_FHEMWEB.pm: put own module attributes to the top of the list (Forum #124538)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25309 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
ec41daa174
commit
ed906a7d16
@ -2304,6 +2304,7 @@ FW_select($$$$$@)
|
||||
next if($processed{$v});
|
||||
if($typeHash) {
|
||||
my $newType = $typeHash->{$v};
|
||||
$newType =~ s/^#//; #124538, see also getAllAttr
|
||||
if($newType ne $oldType) {
|
||||
$s .= "</optgroup>" if($oldType);
|
||||
$s .= "<optgroup label='$newType'>" if($newType);
|
||||
|
4
fhem.pl
4
fhem.pl
@ -2806,9 +2806,9 @@ getAllAttr($;$$)
|
||||
|
||||
&$add($AttrList, "framework");
|
||||
if($defs{$d}{".AttrList"}) {
|
||||
&$add($defs{$d}{".AttrList"}, $defs{$d}{TYPE});
|
||||
&$add($defs{$d}{".AttrList"}, "#".$defs{$d}{TYPE}); #124538
|
||||
} else {
|
||||
&$add($modules{$defs{$d}{TYPE}}{AttrList}, $defs{$d}{TYPE});
|
||||
&$add($modules{$defs{$d}{TYPE}}{AttrList}, "#".$defs{$d}{TYPE});
|
||||
}
|
||||
|
||||
my $nl2space = sub($$)
|
||||
|
Loading…
x
Reference in New Issue
Block a user