Some Transactions view adjustments

-moved js to customers and users components, in order to use accordion.
-Made the transaction form a little prettier
This commit is contained in:
Jason Denney
2013-01-23 00:09:39 -05:00
parent 2d51bd1d9a
commit 55d0b8f2f7
12 changed files with 72 additions and 29 deletions
@@ -0,0 +1,11 @@
{
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: 'User'});
}, this);
}
}