diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-01 03:08:11 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-01 03:08:11 +0300 |
commit | 2888cc93bd061e089968589c0df8d2f507940e1a (patch) | |
tree | f10ddf5e8115c330c5985f0696d69d9e3cd2b44e /app/assets/javascripts/pager.js.coffee | |
parent | b522ef4b690d97ee732f3ce2adc7eedd6b465535 (diff) |
Select just the first matched element
This a generic selector. It was also affecting spinner icon of the tabs
Diffstat (limited to 'app/assets/javascripts/pager.js.coffee')
-rw-r--r-- | app/assets/javascripts/pager.js.coffee | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/pager.js.coffee b/app/assets/javascripts/pager.js.coffee index d639303aed3..0ff83b7f0c8 100644 --- a/app/assets/javascripts/pager.js.coffee +++ b/app/assets/javascripts/pager.js.coffee @@ -1,6 +1,7 @@ @Pager = init: (@limit = 0, preload, @disable = false) -> - @loading = $(".loading") + @loading = $('.loading').first() + if preload @offset = 0 @getOld() |