|
@@ -144,6 +144,7 @@
|
|
|
for (var i = 0; i < ths.length; i++ ) {
|
|
for (var i = 0; i < ths.length; i++ ) {
|
|
|
columnIndex = $.fn.bootstrapTable.utils.getFieldIndex(that.columns, ths[i]);
|
|
columnIndex = $.fn.bootstrapTable.utils.getFieldIndex(that.columns, ths[i]);
|
|
|
if (columnIndex !== -1) {
|
|
if (columnIndex !== -1) {
|
|
|
|
|
+ that.columns[columnIndex].fieldIndex = i;
|
|
|
columns.push(that.columns[columnIndex]);
|
|
columns.push(that.columns[columnIndex]);
|
|
|
that.columns.splice(columnIndex, 1);
|
|
that.columns.splice(columnIndex, 1);
|
|
|
}
|
|
}
|
|
@@ -169,6 +170,9 @@
|
|
|
|
|
|
|
|
that.header.fields = ths;
|
|
that.header.fields = ths;
|
|
|
that.header.formatters = formatters;
|
|
that.header.formatters = formatters;
|
|
|
|
|
+ that.initHeader();
|
|
|
|
|
+ that.initToolbar();
|
|
|
|
|
+ that.initBody();
|
|
|
that.resetView();
|
|
that.resetView();
|
|
|
that.trigger('reorder-column', ths);
|
|
that.trigger('reorder-column', ths);
|
|
|
}
|
|
}
|