浏览代码

Merge branch 'develop' into develop

manukieli 6 年之前
父节点
当前提交
b668ccc2c3
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/bootstrap-table.js
  2. 2 2
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 1 - 1
src/bootstrap-table.js

@@ -2342,7 +2342,7 @@ class BootstrapTable {
     this.initBody()
 
     if (this.options.showColumns) {
-      const $items = this.$toolbar.find('.keep-open input').prop('disabled', false)
+      const $items = this.$toolbar.find('.keep-open input:not(".toggle-all")').prop('disabled', false)
 
       if (needUpdate) {
         $items.filter(Utils.sprintf('[value="%s"]', index)).prop('checked', checked)

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

@@ -792,11 +792,11 @@ $.BootstrapTable = class extends $.BootstrapTable {
     super.initToolbar()
   }
 
-  resetSearch () {
+  resetSearch (text) {
     if (this.options.filterControl && this.options.showSearchClearButton) {
       this.clearFilterControl()
     }
-    super.resetSearch()
+    super.resetSearch(text)
   }
 
   clearFilterControl () {