1845
edycji
mNie podano opisu zmian |
mNie podano opisu zmian |
||
Linia 23: | Linia 23: | ||
const buttonWrapper = document.createElement('div'); | const buttonWrapper = document.createElement('div'); | ||
buttonEntries.forEach((entry, idx) | buttonEntries.forEach(function(entry, idx) { | ||
const button = document.createElement('button'); | const button = document.createElement('button'); | ||
button.classList.add("summaryBtn"); | button.classList.add("summaryBtn"); | ||
button.id = `btn${idx}`; | button.id = `btn${idx}`; | ||
button.innerHTML = entry; | button.innerHTML = entry; | ||
button.addEventListener("click", (e) | button.addEventListener("click", function(e) { | ||
e.preventDefault(); | e.preventDefault(); | ||
addSummary(entry); | addSummary(entry); |