mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
fhemweb.js: help uses the first matching data-pattern found (Forum #127354)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@25982 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
31309cfc6f
commit
8693ce0d26
@ -373,7 +373,7 @@ FW_displayHelp(devName, sel, selType, val, group)
|
|||||||
if(!$(aTag).length) { // regexp attributes, like backend_.*
|
if(!$(aTag).length) { // regexp attributes, like backend_.*
|
||||||
wb.find("a[id^='"+mtype+"-"+selType+"-'][data-pattern]").each(
|
wb.find("a[id^='"+mtype+"-"+selType+"-'][data-pattern]").each(
|
||||||
function() {
|
function() {
|
||||||
if(val.match($(this).attr("data-pattern")))
|
if(!$(aTag).length && val.match($(this).attr("data-pattern")))
|
||||||
aTag = this;
|
aTag = this;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user