Skip to content

Commit

Permalink
fix: Hitting [ENTER] submits the form in create and rename.
Browse files Browse the repository at this point in the history
redimp committed Aug 6, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c0b790d commit a6cde65
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion otterwiki/templates/create.html
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
</div>
<div style="position: relative; -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0;">
{% for prefix in pagename_prefixes %}
<button class="btn btn-xsm mb-5 mr-5" onclick="return otterwiki.toggle_pagename_prefix('pagename','{{prefix}}')">{{prefix}}/</button>
<button type="button" class="btn btn-xsm mb-5 mr-5" onclick="return otterwiki.toggle_pagename_prefix('pagename','{{prefix}}')">{{prefix}}/</button>
{% endfor %}
</div>
</div>
2 changes: 1 addition & 1 deletion otterwiki/templates/rename.html
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@
</div>
<div style="position: relative; -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0;">
{% for prefix in pagename_prefixes %}
<button class="btn btn-xsm mb-5 mr-5" onclick="return otterwiki.toggle_pagename_prefix('new_pagename','{{prefix}}')">{{prefix}}/</button>
<button type="button" class="btn btn-xsm mb-5 mr-5" onclick="return otterwiki.toggle_pagename_prefix('new_pagename','{{prefix}}')">{{prefix}}/</button>
{% endfor %}
</div>
</div>

0 comments on commit a6cde65

Please sign in to comment.