|
|
@@ -153,14 +153,18 @@
|
|
|
}
|
|
|
|
|
|
const stateField = this.header.stateField
|
|
|
+ const isCardView = o.cardView
|
|
|
|
|
|
+ if (stateField) {
|
|
|
+ this.hideColumn(stateField)
|
|
|
+ }
|
|
|
+ if (isCardView) {
|
|
|
+ this.toggleView()
|
|
|
+ }
|
|
|
if (o.exportDataType === 'all' && o.pagination) {
|
|
|
const eventName = o.sidePagination === 'server'
|
|
|
? 'post-body.bs.table' : 'page-change.bs.table'
|
|
|
this.$el.one(eventName, () => {
|
|
|
- if (stateField) {
|
|
|
- this.hideColumn(stateField)
|
|
|
- }
|
|
|
doExport()
|
|
|
this.togglePagination()
|
|
|
})
|
|
|
@@ -184,20 +188,17 @@
|
|
|
}
|
|
|
|
|
|
this.load(selectedData)
|
|
|
- if (stateField) {
|
|
|
- this.hideColumn(stateField)
|
|
|
- }
|
|
|
doExport()
|
|
|
this.load(data)
|
|
|
} else {
|
|
|
- if (stateField) {
|
|
|
- this.hideColumn(stateField)
|
|
|
- }
|
|
|
doExport()
|
|
|
}
|
|
|
if (stateField) {
|
|
|
this.showColumn(stateField)
|
|
|
}
|
|
|
+ if (isCardView) {
|
|
|
+ this.toggleView()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})(jQuery)
|