浏览代码

Added data-search-text table option

Dennis Hernández 10 年之前
父节点
当前提交
f3f1999166
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);
             }
         }
     };