暂时恢复
This commit is contained in:
@@ -2530,11 +2530,11 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
BootstrapTable.prototype.destroy = function () {
|
BootstrapTable.prototype.destroy = function () {
|
||||||
let bootstrapTable = $('div .bootstrap-table');
|
// let bootstrapTable = $('div .bootstrap-table');
|
||||||
if (bootstrapTable.length > 1) {
|
// if (bootstrapTable.length > 1) {
|
||||||
this.$container = $(bootstrapTable[0]);
|
// this.$container = $(bootstrapTable[0]);
|
||||||
this.options.toolbar = $('div.fixed-table-toolbar > div.bars.pull-left').html();
|
// this.options.toolbar = $('div.fixed-table-toolbar > div.bars.pull-left').html();
|
||||||
}
|
// }
|
||||||
this.$el.insertBefore(this.$container);
|
this.$el.insertBefore(this.$container);
|
||||||
$(this.options.toolbar).insertBefore(this.$el);
|
$(this.options.toolbar).insertBefore(this.$el);
|
||||||
this.$container.next().remove();
|
this.$container.next().remove();
|
||||||
@@ -2789,10 +2789,10 @@
|
|||||||
throw new Error("Unknown method: " + option);
|
throw new Error("Unknown method: " + option);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!data && option === 'destroy') {
|
// if (!data && option === 'destroy') {
|
||||||
new BootstrapTable(this, options).destroy();
|
// new BootstrapTable(this, options).destroy();
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (!data) {
|
if (!data) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user