mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhemweb.js: Better help documentation from Thorsten (Forum #120779)
git-svn-id: https://svn.fhem.de/fhem/trunk@24379 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4c2046b05a
commit
5c78dd7fd3
@ -264,6 +264,7 @@ FW_jqueryReadyFn()
|
|||||||
$(sel).append('<option value="'+attrName+'">'+attrName+'</option>');
|
$(sel).append('<option value="'+attrName+'">'+attrName+'</option>');
|
||||||
$(sel).val(attrName);
|
$(sel).val(attrName);
|
||||||
FW_detailSelect(sel, true);
|
FW_detailSelect(sel, true);
|
||||||
|
$(sel).trigger("change");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -374,6 +375,7 @@ FW_displayHelp(devName, sel, selType, val, level)
|
|||||||
liTag = $(aTag).parent("li");
|
liTag = $(aTag).parent("li");
|
||||||
if(!$(liTag).length)
|
if(!$(liTag).length)
|
||||||
liTag = $(aTag).parent().next("li");
|
liTag = $(aTag).parent().next("li");
|
||||||
|
$("#devSpecHelp").remove(); // shown only one if FHEM is slow
|
||||||
if($(liTag).length) {
|
if($(liTag).length) {
|
||||||
$(sel).closest("div[cmd='"+selType+"']")
|
$(sel).closest("div[cmd='"+selType+"']")
|
||||||
.after('<div class="makeTable" id="devSpecHelp"></div>')
|
.after('<div class="makeTable" id="devSpecHelp"></div>')
|
||||||
|
Loading…
Reference in New Issue
Block a user