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');
}
});
$('#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>
</header>
{% if not no_post_form %}
<center><a href="#" id="post-form-opener">[ {% trans 'Create new thread' %} ]</a></center>
<div id="post-form-container" style="display:none;">
{% include 'post_form.html' %}
<details id="post-form-details">
<summary style="list-style: none">
<center>[ {% trans 'Create new thread' %} ]</center>
</summary>
<div style="margin: 1em 0;">
{% include 'post_form.html' %}
</div>
</details>
{% endif %}
<div class="controls">
<ul style="display: none">