Browse Source

Update bootstrap-table.js

BertHankes 11 years ago
parent
commit
9e8b49ad70
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/bootstrap-table.js

+ 2 - 1
src/bootstrap-table.js

@@ -577,7 +577,8 @@
             var s = this.searchText && this.searchText.toLowerCase();
 
             this.data = s ? $.grep(this.options.data, function (item) {
-                for (var key in item) {
+            key = $.isNumeric(key) ? parseInt(key): key ;
+            for (var key in item) {
                     if ($.inArray(key, that.header.fields) !== -1 &&
                         (typeof item[key] === 'string' ||
                         typeof item[key] === 'number') &&