mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
Fix issue where CW button on menu compose form submits the form (#467)
This commit is contained in:
parent
a2e8d05349
commit
dc55ee109a
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
||||||
<input type="hidden" name="visibility" value="{{ config_identity.default_post_visibility }}">
|
<input type="hidden" name="visibility" value="{{ config_identity.default_post_visibility }}">
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<span id="character-counter">{{ config.post_length }}</span>
|
<span id="character-counter">{{ config.post_length }}</span>
|
||||||
<button class="toggle" _="on click or keyup[key is 'Enter'] toggle .enabled then toggle .hidden on #id_content_warning">CW</button>
|
<button class="toggle" _="on click or keyup[key is 'Enter'] toggle .enabled then toggle .hidden on #id_content_warning then halt">CW</button>
|
||||||
<button id="post-button">{% if config_identity.toot_mode %}Toot!{% else %}Post{% endif %}</button>
|
<button id="post-button">{% if config_identity.toot_mode %}Toot!{% else %}Post{% endif %}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue