Skip to content

Commit

Permalink
Merge pull request wenzhixin#3512 from petar313/develop
Browse files Browse the repository at this point in the history
Fix wenzhixin#3050: set page number to 1 after filter
  • Loading branch information
wenzhixin authored Dec 24, 2017
2 parents b4e970f + 8581d40 commit 03dcbf3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extensions/cookie/bootstrap-table-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@
BootstrapTable.prototype.onPageListChange = function () {
_onPageListChange.apply(this, Array.prototype.slice.apply(arguments));
setCookie(this, cookieIds.pageList, this.options.pageSize);
setCookie(this, cookieIds.pageNumber, this.options.pageNumber);
return false;
};

Expand Down Expand Up @@ -384,6 +385,7 @@
if ($(target[0].currentTarget).parent().hasClass('search')) {
setCookie(this, cookieIds.searchText, this.searchText);
}
setCookie(this, cookieIds.pageNumber, this.options.pageNumber);
};

BootstrapTable.prototype.getCookies = function () {
Expand Down

0 comments on commit 03dcbf3

Please sign in to comment.