2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

fhemweb.js: help uses the first matching data-pattern found (Forum #127354)

git-svn-id: https://svn.fhem.de/fhem/trunk@25982 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-04-19 17:01:25 +00:00
parent 55aa67279d
commit 3c7567eb56

View File

@ -373,7 +373,7 @@ FW_displayHelp(devName, sel, selType, val, group)
if(!$(aTag).length) { // regexp attributes, like backend_.*
wb.find("a[id^='"+mtype+"-"+selType+"-'][data-pattern]").each(
function() {
if(val.match($(this).attr("data-pattern")))
if(!$(aTag).length && val.match($(this).attr("data-pattern")))
aTag = this;
});
}