src/rails_admin/filtering-select.js
Function _initAutocomplete
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_initAutocomplete: function () {
var self = this;
return this.input.autocomplete({
delay: this.options.searchDelay,
File filtering-select.js
has 259 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import jQuery from "jquery";
import "jquery-ui/ui/widget.js";
import "jquery-ui/ui/widgets/autocomplete.js";
import I18n from "./i18n";
Function _getResultSet
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getResultSet: function (request, data, xhr) {
var matcher = new RegExp(
$.ui.autocomplete.escapeRegex(request.term),
"i"
);
Function _getSourceFunction
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_getSourceFunction: function (source) {
var self = this;
var requestIndex = 0;
if ($.isArray(source)) {
Function _create
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_create: function () {
this.filtering_select = this.element.siblings(
'[data-input-for="' + this.element.attr("id") + '"]'
);
Function change
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
change: function (event, ui) {
if (ui.item) {
return;
}