summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pager.js.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/pager.js.coffee')
-rw-r--r--app/assets/javascripts/pager.js.coffee3
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()