ソースを参照

Update bootstrap-table-filter-control.js

文翼 8 年 前
コミット
950c2b0e35

+ 3 - 3
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -318,7 +318,7 @@
                     return;
                     return;
                 }
                 }
 
 
-                clearTimeout(event.currentTarget.timeoutId);
+                clearTimeout(event.currentTarget.timeoutId || 0);
                 event.currentTarget.timeoutId = setTimeout(function () {
                 event.currentTarget.timeoutId = setTimeout(function () {
                     that.onColumnSearch(event);
                     that.onColumnSearch(event);
                 }, that.options.searchTimeOut);
                 }, that.options.searchTimeOut);
@@ -333,7 +333,7 @@
                     return;
                     return;
                 }
                 }
                 
                 
-                clearTimeout(event.currentTarget.timeoutId);
+                clearTimeout(event.currentTarget.timeoutId || 0);
                 event.currentTarget.timeoutId = setTimeout(function () {
                 event.currentTarget.timeoutId = setTimeout(function () {
                     that.onColumnSearch(event);
                     that.onColumnSearch(event);
                 }, that.options.searchTimeOut);
                 }, that.options.searchTimeOut);
@@ -351,7 +351,7 @@
                     var newValue = $input.val();
                     var newValue = $input.val();
 
 
                     if (newValue === "") {
                     if (newValue === "") {
-                        clearTimeout(event.currentTarget.timeoutId);
+                        clearTimeout(event.currentTarget.timeoutId || 0);
                         event.currentTarget.timeoutId = setTimeout(function () {
                         event.currentTarget.timeoutId = setTimeout(function () {
                             that.onColumnSearch(event);
                             that.onColumnSearch(event);
                         }, that.options.searchTimeOut);
                         }, that.options.searchTimeOut);