浏览代码

Improve the filter-control extension

Delete some varaibles never used
Dennis Hernández 10 年之前
父节点
当前提交
f0a3f48b69
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 1 - 2
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -244,8 +244,7 @@
                 }, that.options.searchTimeOut);
             });
 
-            var datepickers = header.find('.date-filter-control');
-            if (datepickers.length > 0) {
+            if (header.find('.date-filter-control').length > 0) {
                 $.each(that.options.columns, function (i, column) {
                     if (column.filterControl !== undefined && column.filterControl.toLowerCase() === 'datepicker') {
                         header.find('.date-filter-control.' + column.field).datepicker(column.filterDatepickerOptions)