diff --git a/files/assets/js/followers.js b/files/assets/js/followers.js index 6f7c650bd..1cd91efe6 100644 --- a/files/assets/js/followers.js +++ b/files/assets/js/followers.js @@ -1,5 +1,5 @@ -function removeFollower(event, username) { - post_toast(event.target,'/remove_follow/' + username); +function removeFollower(t, username) { + post_toast(t,'/remove_follow/' + username); let table = document.getElementById("followers-table"); - table.removeChild(event.target.parentElement.parentElement); -} \ No newline at end of file + table.removeChild(t.parentElement.parentElement); +} diff --git a/files/assets/js/following.js b/files/assets/js/following.js index 535359c18..2ecd50891 100644 --- a/files/assets/js/following.js +++ b/files/assets/js/following.js @@ -1,5 +1,5 @@ -function removeFollowing(event, username) { - post_toast(event.target,'/unfollow/' + username); +function removeFollowing(t, username) { + post_toast(t,'/unfollow/' + username); let table = document.getElementById("followers-table"); - table.removeChild(event.target.parentElement.parentElement); -} \ No newline at end of file + table.removeChild(t.parentElement.parentElement); +} diff --git a/files/templates/followers.html b/files/templates/followers.html index c41b147dd..10979a379 100644 --- a/files/templates/followers.html +++ b/files/templates/followers.html @@ -24,7 +24,7 @@