Completed adding transactions

This commit is contained in:
Jason Denney
2013-02-02 14:08:42 -05:00
parent 55d0b8f2f7
commit 873bccb030
11 changed files with 203 additions and 12 deletions
@@ -0,0 +1,14 @@
{
initComponent: function(){
// calling superclass's initComponent
this.callParent();
// setting the 'rowclick' event
var view = this.getComponent('user_transactions').getView();
view.on('itemclick', function(view, record){
// The beauty of using Ext.Direct: calling 3 endpoints in a row, which results in a single call to the server!
this.selectTransaction({transaction_id: record.get('id')});
this.getComponent('transaction_logs').getStore().load();
}, this);
}
}