Disable sub panels until item clicked

This commit is contained in:
Jason Denney
2013-11-03 11:34:48 -05:00
parent cda94cf955
commit 4a67ebe77e
6 changed files with 52 additions and 6 deletions
@@ -6,7 +6,12 @@
if (stats != undefined){
stats.updateStats();
}
if( this.queryById('user_profiles')){
this.queryById('user_profiles').disable();
}
if( this.queryById('user_logs')){
this.queryById('user_logs').disable();
}
// setting the 'rowclick' event
var view = this.getComponent('users').getView();
view.on('itemclick', function(view, record){
@@ -14,6 +19,13 @@
this.selectUser({user_id: record.get('id')});
this.getComponent('user_profiles').getStore().load();
this.getComponent('user_logs').getStore().load();
if( this.queryById('user_profiles')){
this.queryById('user_profiles').enable();
}
if( this.queryById('user_logs')){
this.queryById('user_logs').enable();
}
}, this);
}
}