diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-26 03:09:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-03-26 03:09:22 +0300 |
commit | 9190fb4bdcb7e1189de69de53a523c5aeff71f91 (patch) | |
tree | 09627e1b0ec82e42aec7f334b19925336cccd408 /app/assets/javascripts/pager.js | |
parent | 659ad26b4e0e1f792ab6d15ac8d6e47ec943e214 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/pager.js')
-rw-r--r-- | app/assets/javascripts/pager.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/pager.js b/app/assets/javascripts/pager.js index f78d2b0dbd3..bdb33a82b66 100644 --- a/app/assets/javascripts/pager.js +++ b/app/assets/javascripts/pager.js @@ -16,7 +16,6 @@ export default { callback = $.noop, container = '', ) { - this.url = $('.content_list').data('href') || removeParams(['limit', 'offset']); this.limit = limit; this.offset = parseInt(getParameterByName('offset'), 10) || this.limit; this.disable = disable; @@ -32,8 +31,10 @@ export default { getOld() { this.loading.show(); + const url = $('.content_list').data('href') || removeParams(['limit', 'offset']); + axios - .get(this.url, { + .get(url, { params: { limit: this.limit, offset: this.offset, |