updating designer, fixes for sync treeDetail with properties panel

This commit is contained in:
Erik Amaru Ortiz
2011-02-25 04:51:19 +00:00
parent ff75ab3871
commit d70d3ba0a0

View File

@@ -147,7 +147,7 @@ Ext.onReady ( function() {
usr_uid = usr_uid.join(','); usr_uid = usr_uid.join(',');
tu_relation = tu_relation.join(','); tu_relation = tu_relation.join(',');
PMExt.confirm(_('ID_CONFIRM'), _('ID_REMOVE_USERS_CONFIRM'), function(){ //PMExt.confirm(_('ID_CONFIRM'), _('ID_REMOVE_USERS_CONFIRM'), function(){
Ext.Ajax.request({ Ext.Ajax.request({
url : '../processes/ajaxListener', url : '../processes/ajaxListener',
method: 'POST', method: 'POST',
@@ -166,7 +166,7 @@ Ext.onReady ( function() {
} }
} }
}); });
}); //});
} }
var eastPanelTree = new Ext.tree.TreePanel({ var eastPanelTree = new Ext.tree.TreePanel({
@@ -201,6 +201,14 @@ Ext.onReady ( function() {
// tree east panel selection change // tree east panel selection change
eastPanelTree.getSelectionModel().on('selectionchange', function(tree, node){ eastPanelTree.getSelectionModel().on('selectionchange', function(tree, node){
if( node.attributes.type == 'task') {
_TAS_UID = node.attributes.id;
Ext.getCmp('usersPanelTabs').getTabEl('usersTaskGrid').style.display = '';
Ext.getCmp('usersTaskGrid').store.reload({params: {action:'getUsersTask', TAS_UID: _TAS_UID}});
} else {
Ext.getCmp('usersPanelTabs').setActiveTab(0);
Ext.getCmp('usersPanelTabs').getTabEl('usersTaskGrid').style.display = 'none';
}
propertyStore.reload({params: { propertyStore.reload({params: {
action : 'getProperties', action : 'getProperties',
UID : node.attributes.id, UID : node.attributes.id,
@@ -405,8 +413,6 @@ Ext.onReady ( function() {
] ]
}); });
/*items:[
*/
var north = { var north = {
xtype : "panel", xtype : "panel",
initialSize: 60, initialSize: 60,
@@ -611,6 +617,7 @@ Ext.onReady ( function() {
,border:false, ,border:false,
items:[main] items:[main]
}); });
Ext.getCmp('usersPanelTabs').getTabEl('usersTaskGrid').style.display = 'none';
//Ext.getCmp('eastPanel').hide(); //Ext.getCmp('eastPanel').hide();
//Ext.getCmp('eastPanel').ownerCt.doLayout(); //Ext.getCmp('eastPanel').ownerCt.doLayout();