浏览代码

Remove initToolbar method call

djhvscf 6 年之前
父节点
当前提交
8433e63c91
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/extensions/reorder-columns/bootstrap-table-reorder-columns.js

+ 2 - 2
src/extensions/reorder-columns/bootstrap-table-reorder-columns.js

@@ -158,7 +158,8 @@ BootstrapTable.prototype.makeRowsReorderable = function () {
             optionsColumns.push(item)
             found = true
             return false
-          } return true
+          }
+          return true
         })
       })
 
@@ -167,7 +168,6 @@ BootstrapTable.prototype.makeRowsReorderable = function () {
       that.header.fields = ths
       that.header.formatters = formatters
       that.initHeader()
-      that.initToolbar()
       that.initBody()
       that.resetView()
       that.trigger('reorder-column', ths)