mirror of
https://github.com/fspc/BikeShed-1.git
synced 2026-09-16 08:31:36 -04:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user