From e8eba19f216aeda1515eea2bf381b1bae222b32e Mon Sep 17 00:00:00 2001 From: jklimke Date: Wed, 1 Mar 2017 16:13:19 +0100 Subject: [PATCH] changes size() to length since it is missing in jquery 3.0 --- app/assets/javascripts/rails_admin/ra.filtering-select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/rails_admin/ra.filtering-select.js b/app/assets/javascripts/rails_admin/ra.filtering-select.js index d0d928abb6..e85dd052a4 100644 --- a/app/assets/javascripts/rails_admin/ra.filtering-select.js +++ b/app/assets/javascripts/rails_admin/ra.filtering-select.js @@ -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 {