mirror of
https://github.com/fspc/BikeShed-1.git
synced 2025-02-28 16:53:23 -05:00
-moved js to customers and users components, in order to use accordion. -Made the transaction form a little prettier
12 lines
428 B
JavaScript
12 lines
428 B
JavaScript
{
|
|
initComponent: function(){
|
|
// calling superclass's initComponent
|
|
this.callParent();
|
|
this.getView().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!
|
|
console.log("user: " + record.get('id') );
|
|
this.selectCustomer({customer_id: record.get('id'), customer_type: 'Customer'});
|
|
}, this);
|
|
}
|
|
}
|