Browse Source

Improve the performance

Dennis Hernández 10 years ago
parent
commit
8f40eb4925
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -749,7 +749,7 @@
             }
         });
 
-        this.$container.find("th").off('keypress').on('keypress', function (event) {
+        this.$header.children().children().off('keypress').on('keypress', function (event) {
             if (that.options.sortable && $(this).data().sortable) {
                 var code = event.keyCode || event.which;
                 if(code == 13) { //Enter keycode