]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5627 Fix infinite scrolling
authorStas Vilchik <vilchiks@gmail.com>
Mon, 27 Oct 2014 08:16:26 +0000 (09:16 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 27 Oct 2014 09:40:48 +0000 (10:40 +0100)
server/sonar-web/src/main/coffee/analysis-reports/app.coffee
server/sonar-web/src/main/coffee/analysis-reports/models/reports.coffee

index f0c19a1d9f6bdbd27f8d82771eb35eb3ce4ad5da..0c602cada957e65462c4b4022afb706b689bd3b4 100644 (file)
@@ -56,7 +56,9 @@ requirejs [
         app: @
         collection: @reports
       @layout.resultsRegion.show @reportsView
-      @reportsView.bindScrollEvents() unless @state.get 'active'
+
+      unless @state.get('active') || @reports.paging.maxResultsReached
+        @reportsView.bindScrollEvents() unless @state.get 'active'
 
       @actionsView = new ActionsView
         app: @
index cbaeec3df68bcda0841553ae2f505d74e16a290c..16b23b10851b20621359121c99ad54883f8652e1 100644 (file)
@@ -27,4 +27,6 @@ define [
     fetchHistory: (options = {  }) ->
       _.extend options,
         url: "#{baseUrl}/api/analysis_reports/history"
+      options.data = options.data || {}
+      options.data.ps = 50
       @fetch options, { reset: true }