Skip to content

Commit

Permalink
Prevent form submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dumazeau committed Oct 13, 2023
1 parent 54a34d7 commit 3090e68
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="terms-module-admin-body terms-module-admin-signature-list-body">
<div class="terms-module-admin-signature-list-title">{{ 'terms_module.admin.signature_list'|trans({}, 'terms_module') }}</div>

{{ form_start(form) }}
{{ form_start(form, {'attr': {'onsubmit': 'formSubmit()'}}) }}
<div class="form-fields-40 form-filters">
<div class="form-filter-search">{{ form_row(form.search) }}</div>
<div class="form-filter-terms">{{ form_row(form.terms) }}</div>
Expand Down Expand Up @@ -151,4 +151,10 @@
newSearch();
}
windown.formSubmit = function (e) {
e.preventDefault();
newSearch();
}
</script>

0 comments on commit 3090e68

Please sign in to comment.