mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-22 07:22:15 +01:00
improve grid history behaviour
This commit is contained in:
@@ -131,12 +131,17 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, {
|
||||
return String.format( this.checkboxTemplate, param );
|
||||
},
|
||||
|
||||
handleHistory: function(params){
|
||||
if (params){
|
||||
handleHistory: function(params){
|
||||
if (params && params.length > 0){
|
||||
var index = this.getStore().indexOfId(params[0]);
|
||||
if ( index >= 0 ){
|
||||
this.getSelectionModel().selectRow(index);
|
||||
}
|
||||
} else {
|
||||
if (debug){
|
||||
console.debug( 'clear selection' );
|
||||
}
|
||||
this.getSelectionModel().clearSelections();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user