Browse Source

Enable posting from catalog without JS

Thank you based lewdposter
pull/40/head
discomrade 3 years ago
parent
commit
5eebab95d3
  1. 5
      js/catalog.js
  2. 10
      templates/themes/catalog/catalog.html

5
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');
});
});

10
templates/themes/catalog/catalog.html

@ -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">

Loading…
Cancel
Save