mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-09 04:36:26 +02:00
fix wrong page number on history load
This commit is contained in:
@@ -53,12 +53,14 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
|
||||
limit: this.pageSize
|
||||
}
|
||||
|
||||
var baseParams = {};
|
||||
|
||||
if (this.path){
|
||||
params.path = this.path;
|
||||
baseParams.path = this.path;
|
||||
}
|
||||
|
||||
if (this.revision){
|
||||
params.revision = this.revision;
|
||||
baseParams.revision = this.revision;
|
||||
}
|
||||
|
||||
this.changesetStore = new Sonia.rest.JsonStore({
|
||||
@@ -71,9 +73,11 @@ Sonia.repository.ChangesetViewerPanel = Ext.extend(Ext.Panel, {
|
||||
root: 'changesets',
|
||||
idProperty: 'id',
|
||||
totalProperty: 'total',
|
||||
autoLoad: true,
|
||||
baseParams: baseParams,
|
||||
autoLoad: {
|
||||
params: params
|
||||
},
|
||||
autoDestroy: true,
|
||||
baseParams: params,
|
||||
listeners: {
|
||||
load: {
|
||||
fn: this.updateHistory,
|
||||
@@ -153,8 +157,8 @@ Sonia.History.register('repositoryChangesetViewerPanel', {
|
||||
id: id,
|
||||
xtype: 'repositoryChangesetViewerPanel',
|
||||
repository : repository,
|
||||
start: start,
|
||||
pageSize: limit,
|
||||
start: parseInt(start),
|
||||
pageSize: parseInt(limit),
|
||||
closable: true,
|
||||
autoScroll: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user