Skip to content

Commit

Permalink
use local: true to disable ajax form submission
Browse files Browse the repository at this point in the history
Co-authored-by: Eric O <[email protected]>
  • Loading branch information
JackBlackLight and elohanlon authored Sep 11, 2024
1 parent 1d215d7 commit c8093b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/admin/deposits/_enable_deposits_form.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="col-4 text-right">
<%= form_with url: admin_site_options_path, method: :patch do |form| %>
<%= form_with url: admin_site_options_path, method: :patch, local: true do |form| %>
<% if deposits_enabled? %>
<% action_label = "Disable Deposits" %>
<% enable = false %>
Expand Down

0 comments on commit c8093b3

Please sign in to comment.