BUG 8878 The window's tbar increase size SOLVED

- The windows's tbar increase size before execute ajax, it do to lost scroll
- I remove event hidde and add the disable
This commit is contained in:
Brayan Osmar Pereyra Suxo
2012-06-08 10:22:42 -04:00
parent 9ab13bd90e
commit 47bbfe21de

View File

@@ -85,7 +85,7 @@ Ext.onReady(function(){
switch(data[i].id) {
case 'STEPS':
Ext.getCmp('casesStepTree').root.reload();
Ext.getCmp('stepsMenu').show();
Ext.getCmp('stepsMenu').enable();
break;
case 'NOTES':
Ext.getCmp('caseNotes').show();
@@ -137,6 +137,10 @@ Ext.onReady(function(){
tb.add(menu);
}
}
if (Ext.getCmp('stepsMenu').disabled === true) {
Ext.getCmp('stepsMenu').hide();
}
},
failure: function ( result, request) {
Ext.MessageBox.alert('Failed', result.responseText);
@@ -266,7 +270,8 @@ Ext.onReady(function(){
text:_('ID_SHOW_HIDE_CASES_STEPS')
},
iconCls: 'ICON_STEPS',
toggleHandler: togglePreview
toggleHandler: togglePreview,
disabled: true
}, {
id: 'informationMenu',
text: _('ID_INFORMATION'),
@@ -302,7 +307,7 @@ Ext.onReady(function(){
});
Ext.getCmp('stepsMenu').hide();
// Ext.getCmp('stepsMenu').hide();
Ext.getCmp('caseNotes').hide();
Ext.getCmp('informationMenu').hide();
Ext.getCmp('actionMenu').hide();