mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fhemweb.js: add outer li for help (Forum #93243)
git-svn-id: https://svn.fhem.de/fhem/trunk@17748 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e573c52a08
commit
0e85dd0933
@ -295,16 +295,20 @@ FW_jqueryReadyFn()
|
||||
return;
|
||||
$("#devSpecHelp").remove();
|
||||
var sel = this;
|
||||
FW_getHelp(m[2], function(data) {
|
||||
FW_getHelp(m[2], function(data) { // show either the next or the outer li
|
||||
$("#content")
|
||||
.append("<div id='workbench' style='display:none'></div>");
|
||||
$("#content > #workbench").html(data);
|
||||
var aTag = $("#content > #workbench").find("a[name="+val+"]");
|
||||
|
||||
if($(aTag).length && $(aTag).next("li").length) {
|
||||
$(sel).closest("div[cmd='"+m[1]+"']")
|
||||
.after('<div class="makeTable" id="devSpecHelp"></div>')
|
||||
$("#devSpecHelp").html($(aTag).next("li").html());
|
||||
if($(aTag).length) {
|
||||
var liTag = $(aTag).next("li");
|
||||
if(!$(liTag).length)
|
||||
liTag = $(aTag).parent("li");
|
||||
if($(liTag).length) {
|
||||
$(sel).closest("div[cmd='"+m[1]+"']")
|
||||
.after('<div class="makeTable" id="devSpecHelp"></div>')
|
||||
$("#devSpecHelp").html($(liTag).html());
|
||||
}
|
||||
}
|
||||
$("#content > #workbench").remove();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user