incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject git commit: [#7128] Added UI feedback for loading on Commit Browser and reduced page size for performance
Date Wed, 19 Feb 2014 19:50:55 GMT
Repository: incubator-allura
Updated Branches:
  refs/heads/master ec830d132 -> c32547b42


[#7128] Added UI feedback for loading on Commit Browser and reduced page size for performance

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/c32547b4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/c32547b4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/c32547b4

Branch: refs/heads/master
Commit: c32547b4279cfa6d2f13c85a5045407147bf2b6f
Parents: ec830d1
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Wed Feb 19 19:18:36 2014 +0000
Committer: Cory Johns <cjohns@slashdotmedia.com>
Committed: Wed Feb 19 19:18:36 2014 +0000

----------------------------------------------------------------------
 Allura/allura/lib/widgets/resources/js/commit_browser.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c32547b4/Allura/allura/lib/widgets/resources/js/commit_browser.js
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/resources/js/commit_browser.js b/Allura/allura/lib/widgets/resources/js/commit_browser.js
index 9c960f4..545ac18 100644
--- a/Allura/allura/lib/widgets/resources/js/commit_browser.js
+++ b/Allura/allura/lib/widgets/resources/js/commit_browser.js
@@ -106,7 +106,8 @@ if($('#commit_graph')){
             return;
         }
         pending = true;
-        var params = {'limit': 100};
+        drawGraph(offset);
+        var params = {'limit': 50};
         if (data['next_commit']) {
             params['start'] = data['next_commit'];
         }
@@ -139,11 +140,11 @@ if($('#commit_graph')){
                     x_pos: x_pos,
                     y_pos: y_pos }
             }
+            pending = false;
             drawGraph(offset);
             if (select_first) {
                 selectCommit(0);
             }
-            pending = false;
         });
     }
     get_data(true);
@@ -242,7 +243,7 @@ if($('#commit_graph')){
         if (data['next_commit']) {
             var y_pos = y_space+((next_row-offset)*y_space);
             canvas_ctx.fillStyle = 'rgb(0,0,256)';
-            canvas_ctx.fillText('Show more', (2+next_column) * x_space, y_pos);
+            canvas_ctx.fillText(pending ? 'Loading...' : 'Show more', (2+next_column) * x_space,
y_pos);
         }
     }
 


Mime
View raw message