Skip to content

Commit

Permalink
changes size() to length since it is missing in jquery 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jklimke authored Mar 1, 2017
1 parent 46cd7ec commit e8eba19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/rails_admin/ra.filtering-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
// When using the browser back and forward buttons, it is possible that
// the autocomplete field will be cached which causes duplicate fields
// to be generated.
if (filtering_select.size() > 0) {
if (filtering_select.length > 0) {
this.input = filtering_select.children('input');
this.button = filtering_select.children('.input-group-btn');
} else {
Expand Down

0 comments on commit e8eba19

Please sign in to comment.