Browse Source

Merge pull request #4441 from wenzhixin/fix/2820

init the toolbar to refresh the buttons e.g. showColumns
文翼 6 years ago
parent
commit
e228873f5a

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

@@ -166,9 +166,10 @@ BootstrapTable.prototype.makeRowsReorderable = function () {
       that.header.fields = ths
       that.header.fields = ths
       that.header.formatters = formatters
       that.header.formatters = formatters
       that.initHeader()
       that.initHeader()
+      that.initToolbar()
       that.initBody()
       that.initBody()
       that.resetView()
       that.resetView()
       that.trigger('reorder-column', ths)
       that.trigger('reorder-column', ths)
     }
     }
   })
   })
-}
+}