993
edições
Sem resumo de edição |
Sem resumo de edição |
||
Linha 40: | Linha 40: | ||
let isSelected = option.label === selectedOpt ? "selected" : ""; | let isSelected = option.label === selectedOpt ? "selected" : ""; | ||
let liItem = `<li onclick="updateName('${option.label}', '${option.image}', '${option.obs}')" class="${isSelected}"> ${option.label} </li>`; | let liItem = `<li onclick="updateName<!--{$id|default:''|escape:'html'}--> | ||
('${option.label}', '${option.image}', '${option.obs}')" class="${isSelected}"> ${option.label} </li>`; | |||
options<!--{$id|default:''|escape:'html'}-->.insertAdjacentHTML("beforeend", liItem); | options<!--{$id|default:''|escape:'html'}-->.insertAdjacentHTML("beforeend", liItem); | ||
}); | }); |