Skip to content

Commit

Permalink
change the save and edit symble
Browse files Browse the repository at this point in the history
  • Loading branch information
8YBY8 committed Jul 23, 2024
1 parent 3f4d995 commit 1c831e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/movie.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ div_new.innerHTML = `
<p><strong>User: </strong>
<input type="text" id="new_user" value="">
</p>
<p><a href="#" onclick="saveReview('new_review', 'new_user')">💾</a>
<p><a href="#" onclick="saveReview('new_review', 'new_user')">Save</a>
</p>
</div>
</div>
Expand All @@ -50,7 +50,7 @@ function returnReviews(url){
<div class="card" id="${review._id}">
<p><strong>Review: </strong>${review.review}</p>
<p><strong>User: </strong>${review.user}</p>
<p><a href="#"onclick="editReview('${review._id}','${review.review}', '${review.user}')">✏️</a> <a href="#" onclick="deleteReview('${review._id}')">🗑</a></p>
<p><a href="#"onclick="editReview('${review._id}','${review.review}', '${review.user}')">Edit</a> <a href="#" onclick="deleteReview('${review._id}')">🗑</a></p>
</div>
</div>
</div>
Expand All @@ -74,7 +74,7 @@ function editReview(id, review, user) {
<p><strong>User: </strong>
<input type="text" id="${userInputId}" value="${user}">
</p>
<p><a href="#" onclick="saveReview('${reviewInputId}', '${userInputId}', '${id}',)">💾</a>
<p><a href="#" onclick="saveReview('${reviewInputId}', '${userInputId}', '${id}',)">Save</a>
</p>
`
Expand Down

0 comments on commit 1c831e2

Please sign in to comment.