Creating Transactions works

-Need to scope transactions for users
-Only Admins should be able to create transactions
This commit is contained in:
Jason Denney
2013-01-20 16:14:53 -05:00
parent 1b7daa45ca
commit 2d51bd1d9a
8 changed files with 41 additions and 19 deletions
@@ -5,12 +5,14 @@
// setting the 'rowclick' event
var user_view = this.getComponent('users').getView();
var customer_view = this.getComponent('users').getView();
var customer_view = this.getComponent('customers').getView();
user_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!
console.log("user: " + record.get('id') );
this.selectCustomer({customer_id: record.get('id'), customer_type: 'User'});
}, this);
customer_view.on('itemclick', function(view, record){
console.log("user: " + record.get('id') );
this.selectCustomer({customer_id: record.get('id'), customer_type: 'Customer'});
}, this);
}