Skip to content

Commit

Permalink
Revert "user_profile: profile: Fix multiple clicks for form visibility"
Browse files Browse the repository at this point in the history
This reverts commit d736872.

Well what do you know ... this prevents from opening verify form
for other PR requests.

Signed-off-by: Shashank Verma <[email protected]>
  • Loading branch information
shank03 committed Oct 12, 2023
1 parent d736872 commit e19ee3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions user_profile/templates/user_profile/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,17 @@ <h6 class="">
{% block javascript %}
<script>
function showfrm() {
const btn = document.getElementById('frmbtn');

btn.addEventListener('click', () => {
const form = document.getElementById('frm');

if (form.style.display === 'none') {
form.style.display = 'block';
} else {
form.style.display = 'none';
}
});
}
</script>
{% if user.username == native_profile.user.username and user.userprofile.role == user.userprofile.STUDENT %}
Expand Down

0 comments on commit e19ee3f

Please sign in to comment.