Browse Source

Update bootstrap-table.js

D0d0 11 years ago
parent
commit
411f234903
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/bootstrap-table.js

+ 1 - 2
src/bootstrap-table.js

@@ -641,13 +641,12 @@
                 '</div>');
 
             this.$toolbar.append(html.join(''));
-            var timeOut = this.options.searchTimeOut;
             $search = this.$toolbar.find('.search input');
             $search.off('keyup').on('keyup', function (event) {
                 clearTimeout(timeoutId); // doesn't matter if it's 0
                 timeoutId = setTimeout(function () {
                     that.onSearch(event);
-                }, timeOut);
+                }, that.options.searchTimeOut);
             });
         }
     };