src/qt/res/assets/plugins/footable/footable.filter.js
Function Filter
has 103 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Filter() {
var p = this;
p.name = 'Footable Filter';
p.init = function (ft) {
p.footable = ft;
Function init
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
p.init = function (ft) {
p.footable = ft;
if (ft.options.filter.enabled === true) {
if ($(ft.table).data('filter') === false) return;
ft.timers.register('filter');
Function footable_initialized.filtering
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
'footable_initialized.filtering': function (e) {
var $table = $(ft.table);
var data = {
'input': $table.data('filter') || ft.options.filter.input,
'timeout': $table.data('filter-timeout') || ft.options.filter.timeout,
Function filter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
p.filter = function (filterString) {
var ft = p.footable,
$table = $(ft.table),
minimum = $table.data('filter-minimum') || ft.options.filter.minimum,
clear = !filterString;
Consider simplifying this complex logical expression. Open
Open
if (ft.options.filter.enabled === true) {
if ($(ft.table).data('filter') === false) return;
ft.timers.register('filter');
$(ft.table)
.unbind('.filtering')