Skip to content

Commit

Permalink
Merge pull request #1 from wenzhixin/master
Browse files Browse the repository at this point in the history
Merging with recent changes
  • Loading branch information
tmorehouse committed Jun 23, 2015
2 parents ab71df4 + c8d29e6 commit ab565c9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/extensions/cookie/bootstrap-table-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
_onPageNext = BootstrapTable.prototype.onPageNext,
_onPageLast = BootstrapTable.prototype.onPageLast,
_toggleColumn = BootstrapTable.prototype.toggleColumn,
_selectPage = BootstrapTable.prototype.selectPage,
_onSearch = BootstrapTable.prototype.onSearch;

// init save data after initTable function
Expand Down Expand Up @@ -203,6 +204,11 @@

setCookie(this, cookieIds.columns, JSON.stringify(visibleColumns));
};

BootstrapTable.prototype.selectPage = function (page) {
_selectPage.apply(this, Array.prototype.slice.apply(arguments));
setCookie(this, idsStateSaveList.pageNumber, page);
};

BootstrapTable.prototype.onSearch = function () {
_onSearch.apply(this, Array.prototype.slice.apply(arguments));
Expand Down

0 comments on commit ab565c9

Please sign in to comment.