Skip to content

Commit

Permalink
Clear the form by submission instead of onClick (#1350)
Browse files Browse the repository at this point in the history
Work on issue #1298
  • Loading branch information
70ray authored Oct 15, 2024
1 parent 1e3fa24 commit 5cfd388
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pinc/ProjectSearchForm.inc
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,13 @@ class ProjectSearchForm
</table>
<div class='center-align' style='clear: both;'></div>
<input type='submit' value='", attr_safe(_("Search")), "'>
<input type='button' onclick=\"window.location.assign('?show=search_form');\" value='", attr_safe(_("Clear form")), "'>
</form>";
echo "
<form style='display: inline;' method='GET'>
<input type='submit' value='", attr_safe(_("Clear form")), "'>
<input type='hidden' name='show' value='search_form'>
</form>";

echo get_search_configure_button();
echo "</div>";
echo "<p>
Expand Down

0 comments on commit 5cfd388

Please sign in to comment.