##// END OF EJS Templates
changelog: don't load branches for parents as we don't need them for DAG graph.
marcink -
r3849:f735249e default
parent child Browse files
Show More
@@ -89,7 +89,7 b' class RepoChangelogView(RepoAppView):'
89 data = dict(
89 data = dict(
90 raw_id=commit.raw_id,
90 raw_id=commit.raw_id,
91 idx=commit.idx,
91 idx=commit.idx,
92 branch=h.escape(commit.branch),
92 branch=None,
93 )
93 )
94 if parents:
94 if parents:
95 data['parents'] = [
95 data['parents'] = [
@@ -145,7 +145,7 b' var CommitsController = function () {'
145 this.loadNext = function (node, page, branch, commit_id, f_path) {
145 this.loadNext = function (node, page, branch, commit_id, f_path) {
146 var loadUrl = this.getChunkUrl(page, 'next', branch, commit_id, f_path);
146 var loadUrl = this.getChunkUrl(page, 'next', branch, commit_id, f_path);
147 var postData = {'graph': JSON.stringify(this.getCurrentGraphData())};
147 var postData = {'graph': JSON.stringify(this.getCurrentGraphData())};
148
148 $(node).html('loading...').addClass('disabled').css({'cursor':'default'});
149 $.post(loadUrl, postData, function (data) {
149 $.post(loadUrl, postData, function (data) {
150 $(node).closest('tbody').append(data);
150 $(node).closest('tbody').append(data);
151 $(node).closest('td').remove();
151 $(node).closest('td').remove();
@@ -156,7 +156,7 b' var CommitsController = function () {'
156 this.loadPrev = function (node, page, branch, commit_id, f_path) {
156 this.loadPrev = function (node, page, branch, commit_id, f_path) {
157 var loadUrl = this.getChunkUrl(page, 'prev', branch, commit_id, f_path);
157 var loadUrl = this.getChunkUrl(page, 'prev', branch, commit_id, f_path);
158 var postData = {'graph': JSON.stringify(this.getCurrentGraphData())};
158 var postData = {'graph': JSON.stringify(this.getCurrentGraphData())};
159
159 $(node).html('loading...').addClass('disabled').css({'cursor':'default'});
160 $.post(loadUrl, postData, function (data) {
160 $.post(loadUrl, postData, function (data) {
161 $(node).closest('tbody').prepend(data);
161 $(node).closest('tbody').prepend(data);
162 $(node).closest('td').remove();
162 $(node).closest('td').remove();
General Comments 0
You need to be logged in to leave comments. Login now