Skip to content

Commit

Permalink
Merge pull request #106 from leepeuker/hotfix-rating-reset
Browse files Browse the repository at this point in the history
Hotfix rating reset
  • Loading branch information
leepeuker authored Aug 19, 2022
2 parents 82b9a57 + a5250ba commit 321c4d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions public/js/movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ function saveRating () {
document.getElementById('resetRatingButton').style.display = 'none'
}

function resetRating () {
ratingEditMode = false
function resetRating (e) {
ratingEditMode = true

setRatingStars(originalRating)
setRatingStars(null)
saveRating(e)

ratingEditMode = false

Expand Down
2 changes: 1 addition & 1 deletion templates/page/logMovie.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{% else %}
<ul class="list-group">
{% for movie in movies %}
<li class="list-group-item list-group-item-action">
<li class="list-group-item list-group-item-action" style="padding: 0.4rem">
<div class="col clearfix" style="cursor: pointer" data-bs-toggle="modal" data-bs-target="#watchDateModal" id="{{ movie.id }}">
<img src="{{ tmdb.generatePosterImageUrl(movie.poster_path) }}" class="rounded float-start" alt="..." width="120rem">
<h5 style="padding-left: 8rem">{{ movie.title }} ({{ movie.release_date|date("Y") }})</h5>
Expand Down

0 comments on commit 321c4d2

Please sign in to comment.