mirror of https://gitee.com/karson/fastadmin.git
优化分页大小保存
parent
211a54b4c3
commit
dd8f2363fb
|
|
@ -154,7 +154,9 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
||||||
var _onPageListChange = $.fn.bootstrapTable.Constructor.prototype.onPageListChange;
|
var _onPageListChange = $.fn.bootstrapTable.Constructor.prototype.onPageListChange;
|
||||||
$.fn.bootstrapTable.Constructor.prototype.onPageListChange = function () {
|
$.fn.bootstrapTable.Constructor.prototype.onPageListChange = function () {
|
||||||
_onPageListChange.apply(this, Array.prototype.slice.apply(arguments));
|
_onPageListChange.apply(this, Array.prototype.slice.apply(arguments));
|
||||||
localStorage.setItem('pagesize', this.options.pageSize);
|
if (!isNaN(this.options.pageSize)) {
|
||||||
|
localStorage.setItem('pagesize', this.options.pageSize);
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
// 写入bootstrap-table默认配置
|
// 写入bootstrap-table默认配置
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue