diff options
author | Phil Hughes <me@iamphill.com> | 2017-12-11 15:28:11 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-12-11 15:28:11 +0300 |
commit | 6bb4442054a3804224f84c63fa7c5657508c4ec6 (patch) | |
tree | 87e7806344b74e7954e7284c045a1789873f7280 /app/assets/javascripts/pager.js | |
parent | a5d2732ce91e24fbb7ea8c9b087ba3c7476edc09 (diff) |
updated imports
Diffstat (limited to 'app/assets/javascripts/pager.js')
-rw-r--r-- | app/assets/javascripts/pager.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/pager.js b/app/assets/javascripts/pager.js index 3aa7be070d8..6792b984cc5 100644 --- a/app/assets/javascripts/pager.js +++ b/app/assets/javascripts/pager.js @@ -1,5 +1,5 @@ import { getParameterByName } from '~/lib/utils/common_utils'; -import * as utils from './lib/utils/url_utility'; +import { removeParams } from './lib/utils/url_utility'; (() => { const ENDLESS_SCROLL_BOTTOM_PX = 400; @@ -7,7 +7,7 @@ import * as utils from './lib/utils/url_utility'; const Pager = { init(limit = 0, preload = false, disable = false, prepareData = $.noop, callback = $.noop) { - this.url = $('.content_list').data('href') || utils.removeParams(['limit', 'offset']); + this.url = $('.content_list').data('href') || removeParams(['limit', 'offset']); this.limit = limit; this.offset = parseInt(getParameterByName('offset'), 10) || this.limit; this.disable = disable; |