From f1baa21449db13d4b502f1391973b86bce31b4fc Mon Sep 17 00:00:00 2001 From: Ellert <> Date: Thu, 26 Jan 2017 05:12:44 +0000 Subject: [PATCH] 98_DOIFtools.pm: marking an eventline in DOIFs event monitor shows different representations of the event as operand for DOIF definitions git-svn-id: https://svn.fhem.de/fhem/trunk@13236 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 3 ++ fhem/FHEM/98_DOIFtools.pm | 97 +++++++++++++++++++++++++++++++++++---- 2 files changed, 92 insertions(+), 8 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 3b2c6a84a..9b5085c9b 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,8 @@ # 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. + - update: 98_DOIFtools.pm: marking an eventline in DOIFs event monitor + shows different representations of the event as operand + for DOIF definitions - update: 73_NUKIBridge/74_NUKIDevice 0.6.0 Support for API v1.5 - update: 98_DOIFtools.pm: new attribute DOIFtoolsEventOnDeleted generates events for stat_ Readings before deletion diff --git a/fhem/FHEM/98_DOIFtools.pm b/fhem/FHEM/98_DOIFtools.pm index 61e3eee94..20952df84 100644 --- a/fhem/FHEM/98_DOIFtools.pm +++ b/fhem/FHEM/98_DOIFtools.pm @@ -89,16 +89,56 @@ sub DOIFtools_eM($$$$) { $ret .= "
"; $ret .= ""; $ret .= "
"; - $ret .= ""; + var ins = document.getElementById('doiftoolsdel'); + addEventListener ('DOMNodeInserted', delbutton, false); + var ins = document.getElementById('console'); + ins.addEventListener ('select', doiftoolsCopyToClipboard, false); +EOF + $ret .= ""; } return $ret; } @@ -262,6 +302,7 @@ sub DOIFtools_fhemwebFn($$$$) { my $a = ""; if (ReadingsVal($d,".eM","off") eq "on") { $ret .= ""; + # $ret .= ""; my $filter = $a ? ($a eq "log" ? "global" : $a) : ".*"; $ret .= "

"; $ret .= "Events (Filter: $filter) ". @@ -272,16 +313,56 @@ sub DOIFtools_fhemwebFn($$$$) { $ret .= "
"; $ret .= ""; $ret .= "
"; - $ret .= ""; + var ins = document.getElementById('doiftoolsdel'); + addEventListener ('DOMNodeInserted', delbutton, false); + var ins = document.getElementById('console'); + ins.addEventListener ('select', doiftoolsCopyToClipboard, false); +EOF + $ret .= ""; } return $ret; }