diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-02-29 19:08:11 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-02-29 19:08:11 -0500 |
commit | 2888cc93bd061e089968589c0df8d2f507940e1a (patch) | |
tree | f10ddf5e8115c330c5985f0696d69d9e3cd2b44e | |
parent | b522ef4b690d97ee732f3ce2adc7eedd6b465535 (diff) | |
download | gitlab-ce-2888cc93bd061e089968589c0df8d2f507940e1a.tar.gz |
Select just the first matched element
This a generic selector. It was also affecting spinner icon of the tabs
-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() |