mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
98_DOIFtools.pm: suppress lookup windows in DOIF or DOIFtools by attribute DOIFtoolsNoLookUp and DOIFtoolsNoLookUpInDOIF
git-svn-id: https://svn.fhem.de/fhem/trunk@13316 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0a5bdee4f7
commit
aa8fe0fbb6
@ -1,5 +1,7 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- update: 98_DOIFtools: suppress lookup windows in DOIF or DOIFtools
|
||||||
|
by attribute DOIFtoolsNoLookUp and DOIFtoolsNoLookUpInDOIF
|
||||||
- bugfix: 88_HMCCU: Bug fixes
|
- bugfix: 88_HMCCU: Bug fixes
|
||||||
- update: 98_DOIFtools: improved lookup window handling for for huge content
|
- update: 98_DOIFtools: improved lookup window handling for for huge content
|
||||||
add attributes section and Ok button
|
add attributes section and Ok button
|
||||||
|
@ -194,7 +194,7 @@ sub DOIFtools_Initialize($)
|
|||||||
$data{FWEXT}{"/DOIFtools_logWrapper"}{CONTENTFUNC} = "DOIFtools_logWrapper";
|
$data{FWEXT}{"/DOIFtools_logWrapper"}{CONTENTFUNC} = "DOIFtools_logWrapper";
|
||||||
|
|
||||||
my $oldAttr = "target_room:noArg target_group:noArg executeDefinition:noArg executeSave:noArg eventMonitorInDOIF:noArg readingsPrefix:noArg";
|
my $oldAttr = "target_room:noArg target_group:noArg executeDefinition:noArg executeSave:noArg eventMonitorInDOIF:noArg readingsPrefix:noArg";
|
||||||
$hash->{AttrList} = "DOIFtoolsExecuteDefinition:1,0 DOIFtoolsTargetRoom DOIFtoolsTargetGroup DOIFtoolsExecuteSave:1,0 DOIFtoolsReadingsPrefix DOIFtoolsEventMonitorInDOIF:1,0 DOIFtoolsHideModulShortcuts:1,0 DOIFtoolsHideGetSet:1,0 DOIFtoolsMyShortcuts:textField-long DOIFtoolsMenuEntry:1,0 DOIFtoolsHideStatReadings:1,0 DOIFtoolsEventOnDeleted:1,0 DOIFtoolsEMbeforeReadings:1,0 disabledForIntervals ".$oldAttr;
|
$hash->{AttrList} = "DOIFtoolsExecuteDefinition:1,0 DOIFtoolsTargetRoom DOIFtoolsTargetGroup DOIFtoolsExecuteSave:1,0 DOIFtoolsReadingsPrefix DOIFtoolsEventMonitorInDOIF:1,0 DOIFtoolsHideModulShortcuts:1,0 DOIFtoolsHideGetSet:1,0 DOIFtoolsMyShortcuts:textField-long DOIFtoolsMenuEntry:1,0 DOIFtoolsHideStatReadings:1,0 DOIFtoolsEventOnDeleted:1,0 DOIFtoolsEMbeforeReadings:1,0 DOIFtoolsNoLookUp:1,0 DOIFtoolsNoLookUpInDOIF:1,0 disabledForIntervals ".$oldAttr;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub DOIFtools_dO ($$$$){return "";}
|
sub DOIFtools_dO ($$$$){return "";}
|
||||||
@ -203,7 +203,7 @@ sub DOIFtools_eM($$$$) {
|
|||||||
my ($FW_wname, $d, $room, $pageHash) = @_; # pageHash is set for summaryFn.
|
my ($FW_wname, $d, $room, $pageHash) = @_; # pageHash is set for summaryFn.
|
||||||
my @dtn = devspec2array("TYPE=DOIFtools");
|
my @dtn = devspec2array("TYPE=DOIFtools");
|
||||||
my $ret = "";
|
my $ret = "";
|
||||||
$ret .= $DOIFtoolsJSfuncStart;
|
$ret .= $DOIFtoolsJSfuncStart if (!AttrVal($dtn[0],"DOIFtoolsNoLookUpInDOIF",""));
|
||||||
# Event Monitor
|
# Event Monitor
|
||||||
my $a0 = ReadingsVal($d,".eM", "off") eq "on" ? "off" : "on";
|
my $a0 = ReadingsVal($d,".eM", "off") eq "on" ? "off" : "on";
|
||||||
$ret .= "<div class=\"dval\"><br><span title=\"toggle to switch event monitor on/off\">Event monitor: <a href=\"/fhem?detail=$d&cmd.$d=setreading $d .eM $a0\">toggle</a> </span>";
|
$ret .= "<div class=\"dval\"><br><span title=\"toggle to switch event monitor on/off\">Event monitor: <a href=\"/fhem?detail=$d&cmd.$d=setreading $d .eM $a0\">toggle</a> </span>";
|
||||||
@ -279,7 +279,7 @@ sub DOIFtools_fhemwebFn($$$$) {
|
|||||||
my ($FW_wname, $d, $room, $pageHash) = @_; # pageHash is set for summaryFn.
|
my ($FW_wname, $d, $room, $pageHash) = @_; # pageHash is set for summaryFn.
|
||||||
my $ret = "";
|
my $ret = "";
|
||||||
# $ret .= "<script type=\"text/javascript\" src=\"$FW_ME/pgm2/myfunction.js\"></script>";
|
# $ret .= "<script type=\"text/javascript\" src=\"$FW_ME/pgm2/myfunction.js\"></script>";
|
||||||
$ret .= $DOIFtoolsJSfuncStart;
|
$ret .= $DOIFtoolsJSfuncStart if (!AttrVal($d,"DOIFtoolsNoLookUp",""));
|
||||||
# Logfile Liste
|
# Logfile Liste
|
||||||
if($FW_ss && $pageHash) {
|
if($FW_ss && $pageHash) {
|
||||||
$ret.= "<div id=\"$d\" align=\"center\" class=\"FileLog col2\">".
|
$ret.= "<div id=\"$d\" align=\"center\" class=\"FileLog col2\">".
|
||||||
@ -1339,6 +1339,12 @@ DOIFtools stellt Funktionen zur Unterstützung von DOIF-Geräten bereit.<br>
|
|||||||
<code>attr <name> DOIFtoolsHideGetSet <0|1></code><br>
|
<code>attr <name> DOIFtoolsHideGetSet <0|1></code><br>
|
||||||
<b>DOIFtoolsHideModulGetSet</b> <b>1</b>, verstecken der Set- und Get-Shortcuts. <b>Default 0</b>.<br>
|
<b>DOIFtoolsHideModulGetSet</b> <b>1</b>, verstecken der Set- und Get-Shortcuts. <b>Default 0</b>.<br>
|
||||||
<br>
|
<br>
|
||||||
|
<code>attr <name> DOIFtoolsNoLookUp <0|1></code><br>
|
||||||
|
<b>DOIFtoolsNoLookUp</b> <b>1</b>, es werden keine Lookup-Fenster in DOIFtools geöffnet. <b>Default 0</b>.<br>
|
||||||
|
<br>
|
||||||
|
<code>attr <name> DOIFtoolsNoLookUpInDOIF <0|1></code><br>
|
||||||
|
<b>DOIFtoolsNoLookUpInDOIF</b> <b>1</b>, es werden keine Lookup-Fenster in DOIF geöffnet. <b>Default 0</b>.<br>
|
||||||
|
<br>
|
||||||
<code>attr <name> DOIFtoolsHideModulShortcuts <0|1></code><br>
|
<code>attr <name> DOIFtoolsHideModulShortcuts <0|1></code><br>
|
||||||
<b>DOIFtoolsHideModulShortcuts</b> <b>1</b>, verstecken der DOIFtools Shortcuts. <b>Default 0</b>.<br>
|
<b>DOIFtoolsHideModulShortcuts</b> <b>1</b>, verstecken der DOIFtools Shortcuts. <b>Default 0</b>.<br>
|
||||||
<br>
|
<br>
|
||||||
|
Loading…
Reference in New Issue
Block a user