-
+
-
+
${movieCategory.name}
${movie.description} |
${movie.duration} |
+
+
+
+
+
+ |
`;
}
+ const movieEditButtons = document.getElementsByClassName("movie-button-edit");
+ const movieDeleteButtons = document.getElementsByClassName(
+ "movie-button-delete"
+ );
+ for (let i = 0; i < movieDeleteButtons.length; i++) {
+ movieDeleteButtons[i].addEventListener("click", movieDeleteButtonClicked);
+ movieEditButtons[i].addEventListener("click", movieEditButtonClicked);
+ }
}