Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Commit

Permalink
metagrid : relay some CRUD events
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Mar 29, 2011
1 parent 399ac27 commit 4eaa4f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extdirect/static/js/Ext.django.js
Expand Up @@ -161,10 +161,16 @@ Ext.django.Grid = Ext.extend(Ext.grid.EditorGridPanel, {
if (store.getTotalCount() > this.limit) this.getBottomToolbar().show();
}, this);

// relay some store events
this.relayEvents(this.store, ['destroy', 'save', 'update']);

Ext.django.Grid.superclass.initComponent.apply( this, arguments );


this.on('beforeedit', function() {
if (!this.editable) return false;
}, this);

this.getBottomToolbar().bindStore(this.store);
}

Expand Down

0 comments on commit 4eaa4f9

Please sign in to comment.