993
edições
Sem resumo de edição |
Sem resumo de edição |
||
Linha 43: | Linha 43: | ||
option.phrases.map(phrase => { | option.phrases.map(phrase => { | ||
let li = `<li onclick="updateName('${option.group}')"> ${phrase} </li>`; | let li = `<li onclick="updateName('${option.group}', '${option.img}', '${option.obs}')"> ${phrase} </li>`; | ||
options.insertAdjacentHTML("beforeend", li); | options.insertAdjacentHTML("beforeend", li); | ||
}); | }); | ||
Linha 71: | Linha 71: | ||
html += `<li class="groupTitle ${isSelected}"> ${option.group} </li>`; | html += `<li class="groupTitle ${isSelected}"> ${option.group} </li>`; | ||
option.phrases.filter(curr => curr.toLowerCase().startsWith(searchWord)).map(phrase => { | option.phrases.filter(curr => curr.toLowerCase().startsWith(searchWord)).map(phrase => { | ||
html += `<li onclick="updateName('${option.group}', '${option.img}', '${option.obs}')"> ${phrase} </li>`; | html += `<li onclick="updateName('${option.group}', '${option.img}', '${option.obs}')"> ${phrase} </li>`; |