浏览代码

Merge branch 'develop' into feature/improve-english

Dustin Utecht 3 年之前
父节点
当前提交
77f19c7b14
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/extensions/toolbar/bootstrap-table-toolbar.js

+ 2 - 2
src/extensions/toolbar/bootstrap-table-toolbar.js

@@ -378,7 +378,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
   }
   }
 
 
   onColumnAdvancedSearch (e) {
   onColumnAdvancedSearch (e) {
-    const text = $.trim($(e.currentTarget).val())
+    const text = $(e.currentTarget).val().trim()
     const $field = $(e.currentTarget)[0].id
     const $field = $(e.currentTarget)[0].id
 
 
     if ($.isEmptyObject(this.filterColumnsPartial)) {
     if ($.isEmptyObject(this.filterColumnsPartial)) {
@@ -392,7 +392,7 @@ $.BootstrapTable = class extends $.BootstrapTable {
 
 
     if (this.options.sidePagination !== 'server') {
     if (this.options.sidePagination !== 'server') {
       this.options.pageNumber = 1
       this.options.pageNumber = 1
-      this.onSearch(e)
+      this.initSearch()
       this.updatePagination()
       this.updatePagination()
       this.trigger('column-advanced-search', $field, text)
       this.trigger('column-advanced-search', $field, text)
     }
     }