diff --git a/fhem/CHANGED b/fhem/CHANGED
index b3a9c723e..e2b5b13eb 100644
--- a/fhem/CHANGED
+++ b/fhem/CHANGED
@@ -1,5 +1,7 @@
# 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: improved lookup window handling for for huge content
+ add attributes section and Ok button
- update: 98_DOIFtools: add lookup window for probably assiciated devices
(internals and readings) in DOIF and DOIFtools detail view
- bugfix: FB_CALLIST: cleanup readings on set command clear
diff --git a/fhem/FHEM/98_DOIFtools.pm b/fhem/FHEM/98_DOIFtools.pm
index 2f1661751..6ac143eb9 100644
--- a/fhem/FHEM/98_DOIFtools.pm
+++ b/fhem/FHEM/98_DOIFtools.pm
@@ -128,6 +128,7 @@ function doiftoolsAddLookUp () {
var dev = devList.Results[0];
var row = 0;
for (item in dev.Internals) {
+ if (item == "DEF") {dev.Internals[item] = "
"+dev.Internals[item]+"
"}
var cla = ((row++&1)?"odd":"even");
txt += ""+item+" | "+dev.Internals[item].replace(/\n/g," ")+" |
\n";
}
@@ -137,23 +138,41 @@ function doiftoolsAddLookUp () {
var cla = ((row++&1)?"odd":"even");
txt += ""+item+" | "+dev.Readings[item].Value+" | "+dev.Readings[item].Time+" |
\n";
}
+ txt += "Attributes
";
+ row = 0;
+ for (item in dev.Attributes) {
+ if (item.match(/(userReadings|wait|setList)/) ) {dev.Attributes[item] = ""+dev.Attributes[item]+"
"}
+ var cla = ((row++&1)?"odd":"even");
+ txt += ""+item+" | "+dev.Attributes[item]+" |
\n";
+ }
txt += "
";
- $('#addLookUp').html(txt);
- $('#addLookUp').dialog("open");
+ $('#addLookUp').html(txt);
+ $('#addLookUp').dialog("open");
});
}
$(document).ready(function(){
$('body').append('');
$('#addLookUp').dialog({
width:"60%",
+ height:"auto",
+ maxHeight:900,
modal: false,
position: { at: "right"},
- collusion: "fit fit"
+ collusion: "fit fit",
+ buttons: [
+ {
+ text: "Ok",
+ style:"margin-right: 100%",
+ click: function() {
+ $( this ).dialog( "close" );
+ }
+ }
+ ]
});
$('#addLookUp').dialog( "close" );
$(".assoc").find("a:even").each(function() {
$(this).on("mouseover",doiftoolsAddLookUp);
- $(this).on("mouseleave",doiftoolsRemoveLookUp);
+ // $(this).on("mouseleave",doiftoolsRemoveLookUp);
});
});