mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-05 02:19:31 +00:00
fhemweb.js: change the extraction from <li> to <a> (Forum #90592)
git-svn-id: https://svn.fhem.de/fhem/trunk@17233 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
51d98204e4
commit
6dc2f5f6c6
@ -287,14 +287,14 @@ FW_jqueryReadyFn()
|
|||||||
$("#devSpecHelp").remove();
|
$("#devSpecHelp").remove();
|
||||||
var sel = this;
|
var sel = this;
|
||||||
FW_getHelp(m[2], function(data) {
|
FW_getHelp(m[2], function(data) {
|
||||||
var mm = data.match(new RegExp('<li>(.*")?'+val+'[^A-Za-z_0-9]'));
|
var mm = data.match(new RegExp('<a[^"]*"'+val+'[^A-Za-z_0-9]'));
|
||||||
if(mm == null) {
|
if(mm == null) {
|
||||||
data = "";
|
data = "";
|
||||||
} else {
|
} else {
|
||||||
data = data.substr(mm.index);
|
data = data.substr(mm.index);
|
||||||
var o1 = data.indexOf('</li>');
|
var o1 = data.indexOf('<a', 1);
|
||||||
if(o1 > 0)
|
if(o1 > 0)
|
||||||
data = data.substr(0,o1+5);
|
data = data.substr(0,o1);
|
||||||
}
|
}
|
||||||
if(data) {
|
if(data) {
|
||||||
$(sel).closest("div[cmd='"+m[1]+"']")
|
$(sel).closest("div[cmd='"+m[1]+"']")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user