Skip to content

Commit

Permalink
Merge pull request #46 from trevorgunn/main
Browse files Browse the repository at this point in the history
don't refresh page on form submit
  • Loading branch information
jverzani authored Apr 18, 2024
2 parents a474842 + a5bcaf3 commit 6906ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html_templates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ html_templates["question_tpl"] = mt"""
<script>
var ID = "{{:ID}}"
</script>
<form class="mx-2 my-3 mw-100" name='WeaveQuestion' data-id='{{:ID}}' data-controltype='{{:TYPE}}'>
<form class="mx-2 my-3 mw-100" name='WeaveQuestion' data-id='{{:ID}}' data-controltype='{{:TYPE}}' onSubmit='return false;'>
<div class='form-group {{:STATUS}}'>
<div class='controls'>
<div class="form" id="controls_{{:ID}}" correct='-1' attempts='0'>
Expand Down

0 comments on commit 6906ece

Please sign in to comment.