Skip to content

Commit

Permalink
Support jquery-ui-rails 6. Fixes #3003
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibuya committed May 3, 2018
1 parent 37aa038 commit 252c72a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 8 additions & 0 deletions app/assets/javascripts/rails_admin/jquery-ui.js.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% require_asset "jquery-ui/effect" %>
<% if Jquery::Ui::Rails::JQUERY_UI_VERSION >= '1.12' %>
<% require_asset "jquery-ui/widgets/sortable" %>
<% require_asset "jquery-ui/widgets/autocomplete" %>
<% else %>
<% require_asset "jquery-ui/sortable" %>
<% require_asset "jquery-ui/autocomplete" %>
<% end %>
4 changes: 1 addition & 3 deletions app/assets/javascripts/rails_admin/rails_admin.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
//= require 'jquery'
//= require 'jquery_ujs'
//= require 'jquery.remotipart'
//= require 'jquery-ui/effect'
//= require 'jquery-ui/sortable'
//= require 'jquery-ui/autocomplete'
//= require 'rails_admin/jquery-ui'
//= require 'rails_admin/moment-with-locales'
//= require 'rails_admin/bootstrap-datetimepicker'
//= require 'rails_admin/jquery.colorpicker'
Expand Down
2 changes: 1 addition & 1 deletion rails_admin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'font-awesome-rails', ['>= 3.0', '< 5']
spec.add_dependency 'haml', '>= 4.0', '< 6'
spec.add_dependency 'jquery-rails', ['>= 3.0', '< 5']
spec.add_dependency 'jquery-ui-rails', '~> 5.0'
spec.add_dependency 'jquery-ui-rails', ['>= 5.0', '< 7']
spec.add_dependency 'kaminari', '>= 0.14', '< 2.0'
spec.add_dependency 'nested_form', '~> 0.3'
spec.add_dependency 'rack-pjax', '>= 0.7'
Expand Down

0 comments on commit 252c72a

Please sign in to comment.