Browse Source

Added data-search-text table option

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

+ 2 - 2
src/bootstrap-table.js

@@ -846,9 +846,9 @@
             if (this.options.searchText !== '') {
                 $search.val(this.options.searchText);
                 clearTimeout(timeoutId); // doesn't matter if it's 0
-                setTimeout(function () {
+                timeoutId = setTimeout(function () {
                     $search.trigger('keyup');
-                }, timeoutId);
+                }, that.options.searchTimeOut);
             }
         }
     };