mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +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();
|
||||
var sel = this;
|
||||
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) {
|
||||
data = "";
|
||||
} else {
|
||||
data = data.substr(mm.index);
|
||||
var o1 = data.indexOf('</li>');
|
||||
var o1 = data.indexOf('<a', 1);
|
||||
if(o1 > 0)
|
||||
data = data.substr(0,o1+5);
|
||||
data = data.substr(0,o1);
|
||||
}
|
||||
if(data) {
|
||||
$(sel).closest("div[cmd='"+m[1]+"']")
|
||||
|
Loading…
Reference in New Issue
Block a user