mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
FHEMWEB: reverse the last dropdown patch
git-svn-id: https://svn.fhem.de/fhem/trunk@6527 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
48fbc501a1
commit
121c407509
@ -2489,12 +2489,15 @@ FW_dropdownFn()
|
||||
$fpname =~ s/.*floorplan\/(\w+)$/$1/; #allow usage of attr fp_setbutton
|
||||
my $fwsel;
|
||||
$fwsel = ($cmd eq "state" ? "" : "$cmd ") .
|
||||
FW_select("$d-$cmd","val.$d", \@tv, $txt,"dropdown",
|
||||
"FW_cmd('$FW_ME?XHR=1&cmd.$d=set $d '+ ".
|
||||
"this.options[this.selectedIndex].value+ ' &room=$FW_room')");
|
||||
return "<td colspan='2'>".
|
||||
"$fwsel</td>";
|
||||
FW_select("$d-$cmd","val.$d", \@tv, $txt,"dropdown","submit()").
|
||||
FW_hidden("cmd.$d", "set");
|
||||
$fwsel .= FW_hidden("fwcsrf", $defs{$FW_wname}{CSRFTOKEN}) if($FW_CSRF);
|
||||
|
||||
return "<td colspan='2'><form method=\"$FW_formmethod\">".
|
||||
FW_hidden("arg.$d", $cmd) .
|
||||
FW_hidden("dev.$d", $d) .
|
||||
($FW_room ? FW_hidden("room", $FW_room) : "") .
|
||||
"$fwsel</form></td>";
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user