ソースを参照

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 !== '') {
             if (this.options.searchText !== '') {
                 $search.val(this.options.searchText);
                 $search.val(this.options.searchText);
                 clearTimeout(timeoutId); // doesn't matter if it's 0
                 clearTimeout(timeoutId); // doesn't matter if it's 0
-                setTimeout(function () {
+                timeoutId = setTimeout(function () {
                     $search.trigger('keyup');
                     $search.trigger('keyup');
-                }, timeoutId);
+                }, that.options.searchTimeOut);
             }
             }
         }
         }
     };
     };