diff --git a/js/main.js b/js/main.js index 8249528..2f5a924 100644 --- a/js/main.js +++ b/js/main.js @@ -268,7 +268,7 @@ moveBySearch = (val, searchEl) => { errorEl.id = 'error-message'; errorEl.style.color = 'red'; errorEl.style.margin = '5px'; - errorEl.textContent = 'Nenhuma feature encontrada.'; + errorEl.textContent = 'Nenhum produto encontrado.'; searchEl.appendChild(errorEl); } }; @@ -285,23 +285,19 @@ loadSearch = (searchElId) => { let input = `
- MI: -
`; searchEl.innerHTML = input; let inputField = document.getElementById('input'); - let searchBtn = document.getElementById('searchBtn'); const executeSearch = () => { let value = inputField.value; moveBySearch(value, searchEl); }; - searchBtn.addEventListener('click', executeSearch); inputField.addEventListener('keydown', function(event) { if (event.key === 'Enter') { executeSearch();