浏览代码

trigger search if the sortPriority is used (#4418)

Dustin Utecht 6 年之前
父节点
当前提交
a832640d05
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

+ 4 - 0
src/extensions/multiple-sort/bootstrap-table-multiple-sort.js

@@ -497,6 +497,10 @@ BootstrapTable.prototype.initToolbar = function (...args) {
   this.$sortModal = $(sortModalId)
   this.$sortModal = $(sortModalId)
   this.sortModalSelector = sortModalSelector
   this.sortModalSelector = sortModalSelector
 
 
+  if (that.options.sortPriority !== null) {
+    that.onMultipleSort()
+  }
+
   _initToolbar.apply(this, Array.prototype.slice.apply(args))
   _initToolbar.apply(this, Array.prototype.slice.apply(args))
 
 
   if (that.options.sidePagination === 'server' && !isSingleSort && that.options.sortPriority !== null) {
   if (that.options.sidePagination === 'server' && !isSingleSort && that.options.sortPriority !== null) {