diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-16 19:28:39 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-08-16 19:28:39 +0300 |
commit | 22f452d04954a67d5b76f601803e294089bd9658 (patch) | |
tree | c3cce3968391c1c1d2e080a39a92b2d763e13aa5 | |
parent | 374cdda3c0072218126f717f85f321b566a3262f (diff) | |
parent | 138f07ada72e27e4ffa31ef303d74183168bfdaa (diff) |
Merge branch 'commits-list-page-limit' into 'master'
Fix commit list request appending 40 to offset
Closes #36569 and #36563
See merge request !13603
-rw-r--r-- | app/assets/javascripts/commits.js | 2 | ||||
-rw-r--r-- | changelogs/unreleased/commits-list-page-limit.yml | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/commits.js b/app/assets/javascripts/commits.js index 2b0bf49cf92..047544b1762 100644 --- a/app/assets/javascripts/commits.js +++ b/app/assets/javascripts/commits.js @@ -17,7 +17,7 @@ window.CommitsList = (function() { } }); - Pager.init(limit, false, false, this.processCommits); + Pager.init(parseInt(limit, 10), false, false, this.processCommits); this.content = $("#commits-list"); this.searchField = $("#commits-search"); diff --git a/changelogs/unreleased/commits-list-page-limit.yml b/changelogs/unreleased/commits-list-page-limit.yml new file mode 100644 index 00000000000..2fd54c5960a --- /dev/null +++ b/changelogs/unreleased/commits-list-page-limit.yml @@ -0,0 +1,5 @@ +--- +title: Fix commit list not loading the correct page when scrolling +merge_request: +author: +type: fixed |