added history functions for user panel

This commit is contained in:
Sebastian Sdorra
2011-11-19 16:39:10 +01:00
parent adc0476921
commit 1ec8771064
2 changed files with 52 additions and 2 deletions

View File

@@ -40,6 +40,9 @@ Sonia.user.Grid = Ext.extend(Sonia.rest.Grid, {
colCreationDateText: 'Creation Date',
colLastModifiedText: 'Last modified',
colTypeText: 'Type',
// parent for history
parentPanel: null,
initComponent: function(){
@@ -85,6 +88,10 @@ Sonia.user.Grid = Ext.extend(Sonia.rest.Grid, {
Ext.apply(this, Ext.apply(this.initialConfig, config));
Sonia.user.Grid.superclass.initComponent.apply(this, arguments);
if (this.parentPanel){
this.parentPanel.userGrid = this;
}
},
onFallBelowMinHeight: function(height, minHeight){