From 068e6caf8dfa3fb36dd9f74b9070f41f801e9c8d Mon Sep 17 00:00:00 2001
From: FChannel <>
Date: Sat, 3 Jul 2021 19:46:32 -0700
Subject: fixed bug with reply/report box not closing when submitting post

---
 static/top.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'static/top.html')

diff --git a/static/top.html b/static/top.html
index 26c2fcc..fa4cb9e 100644
--- a/static/top.html
+++ b/static/top.html
@@ -9,7 +9,7 @@
   <h3 id="newpostbtn"  state="0" style="text-align: center; margin-top: 80px;"><a href="javascript:newpost()">[Start a New Thread]</a></h3>
   {{ end }}
   <div id="newpost" style="display: none;">    
-    <form id="new-post" action="/post" method="post" enctype="multipart/form-data" style="margin-left: 180px;">        
+    <form onsubmit="sessionStorage.setItem('element-closed-reply', true)" id="new-post" action="/post" method="post" enctype="multipart/form-data" style="margin-left: 180px;">        
       <label for="name">Name:</label><br>
       <input type="text" id="name" name="name" placeholder="Anonymous" maxlength="100"><br>
       <label for="options">Options:</label><br>
-- 
cgit v1.2.3