Skip to content

Commit

Permalink
Remove old url redirection and add form reset
Browse files Browse the repository at this point in the history
  • Loading branch information
thremilien committed Aug 21, 2024
1 parent fcb729e commit ac099c3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@

<!-- Validate -->
<div class="btn-group pull-right mb-2">
<button type="button" class="btn btn-danger btn-block m-1 p-2 pl-4 pr-4" onclick="window.location.href='{{get_homepath()}}/admin/{{course.get_id()}}/new_submissions'">
<button id="reset_button" type="button" class="btn btn-danger btn-block m-1 p-2 pl-4 pr-4" onclick="document.getElementById('select_form').reset();document.getElementById('filter_button').click();">
<i class="fa fa-undo"></i> {{ _("Reset") }}
</button>
<button type="submit" class="btn btn-primary btn-block m-1 p-2 pl-4 pr-4">
<button id="filter_button" type="submit" class="btn btn-primary btn-block m-1 p-2 pl-4 pr-4">
<i class="fa fa-check"></i> {{ _("Filter") }}
</button>
</div>
Expand Down

0 comments on commit ac099c3

Please sign in to comment.