2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

webCmd in detail for smallscreen

git-svn-id: https://svn.fhem.de/fhem/trunk@1266 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-02-17 13:58:58 +00:00
parent 8fbbe6d199
commit 535deda57c
2 changed files with 13 additions and 1 deletions

View File

@ -13,6 +13,7 @@
- feature: EnOcean PM101 by Ignaz
- feature: FHEMWEB redirectCmds attribute added
- feature: CUL_TX minsecs attribute (by Arno)
- feature: webCmd in smallScreen added
- 2011-12-31 (5.2)
- bugfix: applying smallscreen attributes to firefox/opera

View File

@ -682,8 +682,19 @@ FW_doDetail($)
FW_pO FW_hidden("detail", $d);
my $t = $defs{$d}{TYPE};
FW_pO "<div id=\"content\">";
if($FW_ss) { # FS20MS2 special: on and off, is not the same as toggle
my $webCmd = AttrVal($d, "webCmd", undef);
if($webCmd) {
FW_pO "<table>";
foreach my $cmd (split(":", $webCmd)) {
FW_pO "<tr>";
FW_pH "cmd.$d=set $d $cmd&detail=$d", ReplaceEventMap($d,$cmd,1), 1, "col1";
FW_pO "</tr>";
}
FW_pO "</table>";
}
}
FW_pO "<table><tr><td>";
FW_makeSelect($d, "set", getAllSets($d));
FW_makeTable($d, $defs{$d});