From 5eebab95d35aff5085a708d099fee2137436c8af Mon Sep 17 00:00:00 2001 From: discomrade Date: Fri, 1 Oct 2021 06:03:58 +0000 Subject: [PATCH] Enable posting from catalog without JS Thank you based lewdposter --- js/catalog.js | 5 ----- templates/themes/catalog/catalog.html | 10 +++++++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/js/catalog.js b/js/catalog.js index 1d6305cb..bf781c10 100644 --- a/js/catalog.js +++ b/js/catalog.js @@ -45,9 +45,4 @@ if (active_page == 'catalog') $(function(){ $(this).css('width', 'auto'); } }); - - $('#post-form-opener').on('click', function(e) { - $('#post-form-container').css('display', 'unset'); - $('#post-form-opener').css('display', 'none'); - }); }); diff --git a/templates/themes/catalog/catalog.html b/templates/themes/catalog/catalog.html index a72e503f..7fa7146f 100644 --- a/templates/themes/catalog/catalog.html +++ b/templates/themes/catalog/catalog.html @@ -20,10 +20,14 @@
{{ settings.subtitle }}
{% if not no_post_form %} -
[ {% trans 'Create new thread' %} ]
-