Altered Bikes view to show a bike's task list.

Need to create a default task list for all bikes.
This commit is contained in:
Jason Denney
2013-02-09 10:00:46 -05:00
parent 545c33b953
commit cd65e34ae1
5 changed files with 37 additions and 4 deletions
@@ -8,7 +8,12 @@
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.selectBike({bike_id: record.get('id')});
this.getComponent('bike_logs').getStore().load();
if( this.queryById('bike_logs') ){
this.queryById('bike_logs').getStore().load();
}
if( this.queryById('tasks') ){
this.queryById('tasks').getStore().load();
}
}, this);
}
}