From afb8151bfe776329642b66464444f1cca1c9d1d0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 7 Sep 2023 12:25:15 +0300 Subject: [PATCH] restore needful shit --- files/assets/js/userpage_blocking.js | 9 +++++++++ files/templates/userpage/blocking.html | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 files/assets/js/userpage_blocking.js 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 %}