diff --git a/files/assets/js/userpage_blocking.js b/files/assets/js/userpage_blocking.js new file mode 100644 index 0000000000..e068919a3d --- /dev/null +++ b/files/assets/js/userpage_blocking.js @@ -0,0 +1,9 @@ +function unblock_user(t, url) { + postToast(t, url, + { + }, + () => { + t.parentElement.parentElement.remove(); + } + ); +} diff --git a/files/templates/userpage/blocking.html b/files/templates/userpage/blocking.html index 0d29356226..fc2a500811 100644 --- a/files/templates/userpage/blocking.html +++ b/files/templates/userpage/blocking.html @@ -28,7 +28,7 @@ {% if v.id == u.id %} - + {% endif %} {% endblock %}