Lines 562-570
jQuery.fn.dataTable.ext.errMode = function(settings, note, message) {
Link Here
|
562 |
for (var i=0;i<attributes.length;i++){ |
562 |
for (var i=0;i<attributes.length;i++){ |
563 |
var part = {}; |
563 |
var part = {}; |
564 |
var attr = attributes[i]; |
564 |
var attr = attributes[i]; |
565 |
part[!attr.includes('.')?'me.'+attr:attr] = options.criteria === 'exact' |
565 |
let criteria = options.criteria; |
|
|
566 |
if ( value.match(/^\^(.*)\$$/) ) { |
567 |
value = value.replace(/^\^/, '').replace(/\$$/, ''); |
568 |
criteria = "exact"; |
569 |
} |
570 |
part[!attr.includes('.')?'me.'+attr:attr] = criteria === 'exact' |
566 |
? value |
571 |
? value |
567 |
: {like: (['contains', 'ends_with'].indexOf(options.criteria) !== -1?'%':'') + value + (['contains', 'starts_with'].indexOf(options.criteria) !== -1?'%':'')}; |
572 |
: {like: (['contains', 'ends_with'].indexOf(criteria) !== -1?'%':'') + value + (['contains', 'starts_with'].indexOf(criteria) !== -1?'%':'')}; |
568 |
parts.push(part); |
573 |
parts.push(part); |
569 |
} |
574 |
} |
570 |
return parts; |
575 |
return parts; |
Lines 843-852
jQuery.fn.dataTable.ext.errMode = function(settings, note, message) {
Link Here
|
843 |
|
848 |
|
844 |
$( input_type, this ).on( 'keyup change', function () { |
849 |
$( input_type, this ).on( 'keyup change', function () { |
845 |
if ( table_dt.column(i).search() !== this.value ) { |
850 |
if ( table_dt.column(i).search() !== this.value ) { |
846 |
table_dt |
851 |
if ( input_type == "input" ) { |
847 |
.column(i) |
852 |
table_dt |
848 |
.search( this.value ) |
853 |
.column(i) |
849 |
.draw(); |
854 |
.search( this.value ) |
|
|
855 |
.draw(); |
856 |
} else { |
857 |
table_dt |
858 |
.column(i) |
859 |
.search( '^'+this.value+'$', true, false ) |
860 |
.draw(); |
861 |
} |
850 |
} |
862 |
} |
851 |
} ); |
863 |
} ); |
852 |
} else { |
864 |
} else { |
853 |
- |
|
|