Browse Source

Move line with parseInt inside for loop

Slawomir Sawicki 11 years ago
parent
commit
e48310d6e0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -627,8 +627,8 @@
             var s = this.searchText && this.searchText.toLowerCase();
 
             this.data = s ? $.grep(this.options.data, function (item, i) {
-                key = $.isNumeric(key) ? parseInt(key, 10) : key;
                 for (var key in item) {
+                    key = $.isNumeric(key) ? parseInt(key, 10) : key;
                     var value = item[key];
 
                     // Fix #142: search use formated data