improve performance of history panel

This commit is contained in:
Sebastian Sdorra
2012-07-04 11:26:38 +02:00
parent fbbaa32b55
commit 912b566bfb
2 changed files with 8 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
start: 0,
pageSize: 20,
changesetStore: null,
startLimit: null,
// parameters for file history view
inline: false,
@@ -48,9 +49,13 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
this.url = restUrl + 'repositories/' + this.repository.id + '/changesets.json';
}
if ( ! this.startLimit ){
this.startLimit = this.pageSize;
}
var params = {
start: this.start,
limit: this.pageSize
limit: this.startLimit
}
var baseParams = {};

View File

@@ -109,7 +109,8 @@ Sonia.repository.ContentPanel = Ext.extend(Ext.Panel, {
path: this.path,
inline: true,
// TODO find a better way
pageSize: 9999
pageSize: 9999,
startLimit: -1
}
},