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
  • Loading branch information
redimp committed Aug 6, 2024
1 parent c0b790d commit a6cde65
Show file tree
Hide file tree
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
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion otterwiki/templates/rename.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit a6cde65

Please sign in to comment.