Lines 556-562
jQuery.fn.dataTable.ext.errMode = function(settings, note, message) {
Link Here
|
556 |
_per_page: length |
556 |
_per_page: length |
557 |
}; |
557 |
}; |
558 |
|
558 |
|
559 |
|
|
|
560 |
function build_query(col, value){ |
559 |
function build_query(col, value){ |
561 |
var parts = []; |
560 |
var parts = []; |
562 |
var attributes = col.data.split(':'); |
561 |
var attributes = col.data.split(':'); |
Lines 601-613
jQuery.fn.dataTable.ext.errMode = function(settings, note, message) {
Link Here
|
601 |
if ( default_filters ) { |
600 |
if ( default_filters ) { |
602 |
let additional_filters = {}; |
601 |
let additional_filters = {}; |
603 |
for ( f in default_filters ) { |
602 |
for ( f in default_filters ) { |
|
|
603 |
let k; let v; |
604 |
if ( typeof(default_filters[f]) === 'function' ) { |
604 |
if ( typeof(default_filters[f]) === 'function' ) { |
605 |
let val = default_filters[f](); |
605 |
let val = default_filters[f](); |
606 |
if ( val != undefined && val != "" ) { |
606 |
if ( val != undefined && val != "" ) { |
607 |
additional_filters[f] = val; |
607 |
k = f; v = val; |
608 |
} |
608 |
} |
609 |
} else { |
609 |
} else { |
610 |
additional_filters[f] = default_filters[f]; |
610 |
k = f; v = default_filters[f]; |
|
|
611 |
} |
612 |
|
613 |
// Pass to -or if you want a separate OR clause |
614 |
// It's not the usual DBIC notation! |
615 |
if ( f == '-or' ) { |
616 |
if (v) or_query_parameters.push(v) |
617 |
} else if ( v ) { |
618 |
additional_filters[k] = v; |
611 |
} |
619 |
} |
612 |
} |
620 |
} |
613 |
if ( Object.keys(additional_filters).length ) { |
621 |
if ( Object.keys(additional_filters).length ) { |