mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
22_HOMEMODE.pm: v1.1.6 - fix (again) longpoll for details view
git-svn-id: https://svn.fhem.de/fhem/trunk@14869 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
affe56d38e
commit
7ae97853b5
@ -2933,7 +2933,7 @@ sub HOMEMODE_Details($$$)
|
||||
my $info = ReadingsVal($name,$iid,"");
|
||||
my $html = "<div>";
|
||||
$html .= "<style>.homehover{cursor:pointer}.homeinfo{display:none}.tar{text-align:right}.homeinfopanel{min-height:30px;max-width:480px;padding:3px 10px}</style>";
|
||||
$html .= "<div class=\"homeinfopanel\" informid=\"$iid\">$info</div>";
|
||||
$html .= "<div class=\"homeinfopanel\" informid=\"$name-$iid\">$info</div>";
|
||||
$html .= "<table class=\"wide\">";
|
||||
if (AttrVal($name,"HomeYahooWeatherDevice",""))
|
||||
{
|
||||
@ -2984,7 +2984,7 @@ sub HOMEMODE_Details($$$)
|
||||
$html .= "var t=\$(this).find(\".homeinfo\").text();";
|
||||
$html .= "var id=\$(this).find(\".homeinfo\").attr(\"informid\");";
|
||||
$html .= "var r=id.split(\"-\")[1];";
|
||||
$html .= "\$(\".homeinfopanel\").text(t).attr(\"informid\",r);";
|
||||
$html .= "\$(\".homeinfopanel\").text(t).attr(\"informid\",id);";
|
||||
$html .= "if(r){\$.post(window.location.pathname+\"?cmd=setreading%20$name%20lastInfo%20\"+r+\"$FW_CSRF\")};";
|
||||
$html .= "});</script>";
|
||||
return $html;
|
||||
|
Loading…
Reference in New Issue
Block a user