|
|
@@ -934,6 +934,8 @@
|
|
|
this.$body = $('<tbody></tbody>').appendTo(this.$el);
|
|
|
}
|
|
|
|
|
|
+ //Fix #389 Bootstrap-table-flatJSON is not working
|
|
|
+
|
|
|
if (!this.options.pagination || this.options.sidePagination === 'server') {
|
|
|
this.pageFrom = 1;
|
|
|
this.pageTo = data.length;
|
|
|
@@ -1144,7 +1146,7 @@
|
|
|
this.trigger('post-body');
|
|
|
};
|
|
|
|
|
|
- BootstrapTable.prototype.initServer = function (silent, queryparams) {
|
|
|
+ BootstrapTable.prototype.initServer = function (silent, query) {
|
|
|
var that = this,
|
|
|
data = {},
|
|
|
params = {
|
|
|
@@ -1168,7 +1170,9 @@
|
|
|
order: params.sortOrder
|
|
|
};
|
|
|
}
|
|
|
- data = calculateObjectValue(this.options, $.extend(this.options.queryParams, queryparams || {}), [params], data);
|
|
|
+ data = calculateObjectValue(this.options, this.options.queryParams, [params], data);
|
|
|
+
|
|
|
+ $.extend(data, query || {});
|
|
|
|
|
|
// false to stop request
|
|
|
if (data === false) {
|
|
|
@@ -1495,7 +1499,7 @@
|
|
|
this.options.url = params.url;
|
|
|
this.options.pageNumber = 1;
|
|
|
}
|
|
|
- this.initServer(params && params.silent, params && params.queryparams);
|
|
|
+ this.initServer(params && params.silent, params && params.query);
|
|
|
};
|
|
|
|
|
|
BootstrapTable.prototype.showColumn = function (field) {
|