|
@@ -2761,8 +2761,16 @@
|
|
|
|
|
|
|
|
BootstrapTable.prototype.refresh = function (params) {
|
|
BootstrapTable.prototype.refresh = function (params) {
|
|
|
if (params && params.url) {
|
|
if (params && params.url) {
|
|
|
|
|
+ this.options.url = params.url;
|
|
|
|
|
+ }
|
|
|
|
|
+ if (params && params.pageNumber) {
|
|
|
|
|
+ this.options.pageNumber = params.pageNumber;
|
|
|
|
|
+ } else {
|
|
|
this.options.pageNumber = 1;
|
|
this.options.pageNumber = 1;
|
|
|
}
|
|
}
|
|
|
|
|
+ if (params && params.pageSize) {
|
|
|
|
|
+ this.options.pageSize = params.pageSize;
|
|
|
|
|
+ }
|
|
|
this.initServer(params && params.silent,
|
|
this.initServer(params && params.silent,
|
|
|
params && params.query, params && params.url);
|
|
params && params.query, params && params.url);
|
|
|
this.trigger('refresh', params);
|
|
this.trigger('refresh', params);
|