Enable posting from catalog without JS

Thank you based lewdposter
This commit is contained in:
discomrade 2021-10-01 06:03:58 +00:00
parent b227982390
commit 79156cbbe4
2 changed files with 7 additions and 8 deletions

View file

@ -45,9 +45,4 @@ if (active_page == 'catalog') $(function(){
$(this).css('width', 'auto'); $(this).css('width', 'auto');
} }
}); });
$('#post-form-opener').on('click', function(e) {
$('#post-form-container').css('display', 'unset');
$('#post-form-opener').css('display', 'none');
});
}); });

View file

@ -20,10 +20,14 @@
<div class="subtitle">{{ settings.subtitle }}</div> <div class="subtitle">{{ settings.subtitle }}</div>
</header> </header>
{% if not no_post_form %} {% if not no_post_form %}
<center><a href="#" id="post-form-opener">[ {% trans 'Create new thread' %} ]</a></center> <details id="post-form-details">
<div id="post-form-container" style="display:none;"> <summary style="list-style: none">
<center>[ {% trans 'Create new thread' %} ]</center>
</summary>
<div style="margin: 1em 0;">
{% include 'post_form.html' %} {% include 'post_form.html' %}
</div> </div>
</details>
{% endif %} {% endif %}
<div class="controls"> <div class="controls">
<ul style="display: none"> <ul style="display: none">