Skip to content

Commit

Permalink
redirect after deleting peer review on profile page #1798
Browse files Browse the repository at this point in the history
  • Loading branch information
Darynarli authored and Darynarli committed Jan 30, 2025
1 parent 0df89cb commit 7108341
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions login/templates/login/user_review.html
Original file line number Diff line number Diff line change
Expand Up @@ -434,17 +434,22 @@ <h2 class="header">

{% block after-body-bottom-js %}
<script>
document.addEventListener("DOMContentLoaded", function () {
config.redirectUrl = window.location.href; // redirect to the same page
config.url_table = window.location.href; // url for redirect
});

var config = {
url_peer_review: "{% url 'delete_peer_review_simple' %}",
review_id: "{{ latest_review_id }}" // ID for в POST request
review_id: "{{ latest_review_id }}"
};

</script>


<script src="{% static '/peer_review/opr_reviewer.js' %}"></script>



<script>
$(function () {
$('[data-bs-toggle="popover"]').popover()
Expand Down

0 comments on commit 7108341

Please sign in to comment.