mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhemweb.js: remove unnecessary quoting in the help (Forum #127354)
git-svn-id: https://svn.fhem.de/fhem/trunk@25983 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3c7567eb56
commit
00f1aaa4fc
@ -303,8 +303,7 @@ FW_jqueryReadyFn()
|
||||
|
||||
$("select[id^=sel_attr],select[id^=sel_set],select[id^=sel_get]")
|
||||
.change(function(){ // online help
|
||||
var val = $(this).val().replace(/[.\/(){}\[\]%*]/g,
|
||||
function(a){ return "\\"+a });
|
||||
var val = $(this).val();
|
||||
var m = $(this).attr("name").match(/arg.(set|get|attr)(.*)/);
|
||||
if(!m)
|
||||
return;
|
||||
@ -373,8 +372,12 @@ 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(!$(aTag).length && val.match($(this).attr("data-pattern")))
|
||||
var dp = $(this).attr("data-pattern");
|
||||
// if(!$(aTag).length && val.match(dp)) {
|
||||
if(val.match(dp)) {
|
||||
log("Searching for "+val+", found data-pattern "+dp);
|
||||
aTag = this;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user