From 8e94a0caf0218cb6c2ab2fcb8677f2092ef8e1ba Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Sun, 9 Jan 2022 23:02:19 +0200 Subject: [PATCH] Walls: Close post attachment context menu after attachment --- Web/static/js/al_wall.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 9d9d35cb..d18b773d 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -35,6 +35,8 @@ function handleUpload(id) { u("span", indicator.nodes[0]).text(trim(file.name) + " (" + humanFileSize(file.size, false) + ")"); indicator.attr("style", "display: block;"); } + + document.querySelector("#post-buttons" + id + " #wallAttachmentMenu").classList.add("hidden"); } function initGraffiti(id) {