Skip to content

Commit

Permalink
Merge pull request #3225 from projectblacklight/remove-rails-ujs
Browse files Browse the repository at this point in the history
Remove rails-ujs
  • Loading branch information
jcoyne authored Sep 23, 2024
2 parents 1bfd263 + 5a40f1d commit d566efe
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/views/bookmarks/_clear_bookmarks_widget.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<%= link_to t('blacklight.bookmarks.clear.action_title'), clear_bookmarks_path,
method: :delete, # for rails-UJS
data: {
confirm: t('blacklight.bookmarks.clear.action_confirm'), # for rails-UJS
turbo_method: :delete,
turbo_confirm: t('blacklight.bookmarks.clear.action_confirm')
},
Expand Down
2 changes: 0 additions & 2 deletions app/views/search_history/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
<% else %>
<%= link_to t('blacklight.search_history.clear.action_title'),
blacklight.clear_search_history_path,
method: :delete, # for rails-ujs
data: {
confirm: t('blacklight.search_history.clear.action_confirm'), # for rails-ujs
turbo_confirm: t('blacklight.search_history.clear.action_confirm'),
turbo_method: :delete
},
Expand Down
2 changes: 0 additions & 2 deletions lib/generators/blacklight/assets/sprockets_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def assets

create_file 'app/assets/javascripts/application.js' do
<<~CONTENT
//= require rails-ujs
// Required by Blacklight
//= require popper
//= require bootstrap
Expand Down

0 comments on commit d566efe

Please sign in to comment.