You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2014/02/19 20:18:52 UTC
[4/4] git commit: [#7128] Added UI feedback for loading on Commit
Browser and reduced page size for performance
[#7128] Added UI feedback for loading on Commit Browser and reduced page size for performance
Signed-off-by: Cory Johns <cj...@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/cj/7128
Commit: c32547b4279cfa6d2f13c85a5045407147bf2b6f
Parents: ec830d1
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Wed Feb 19 19:18:36 2014 +0000
Committer: Cory Johns <cj...@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);
}
}