|
|
@@ -425,10 +425,13 @@
|
|
|
this.searchText = text;
|
|
|
|
|
|
if (this.options.sidePagination !== 'server') {
|
|
|
+ var s = that.searchText.toLowerCase();
|
|
|
+
|
|
|
this.data = $.grep(this.options.data, function (item) {
|
|
|
for (var key in item) {
|
|
|
- if (typeof item[key] === 'string' &&
|
|
|
- item[key].toLowerCase().indexOf(that.searchText.toLowerCase()) !== -1) {
|
|
|
+ if ((typeof item[key] === 'string' ||
|
|
|
+ typeof item[key] === 'number') &&
|
|
|
+ (item[key] + '').toLowerCase().indexOf(s) !== -1) {
|
|
|
return true;
|
|
|
}
|
|
|
}
|