BUG 8742 Migrate Processmaker Heartbeat to ExtJS SOLVED.

- Cuando se realiza una instalacion de cero de esta version, en el navegador IE9 no se visualiza la opcion Heartbeat, lo cual hace que exista un mal funcionamiento del mismo.
- Adjustment extJS javascript coding for iExplorer problem.
This commit is contained in:
Hector Cortez
2012-04-26 11:56:45 -04:00
parent 93fca85212
commit cec6a1c4b6

View File

@@ -11,7 +11,12 @@ Ext.onReady(function() {
hideLabel : true, hideLabel : true,
id : 'ch_ii', id : 'ch_ii',
style : 'margin-top:15px', style : 'margin-top:15px',
boxLabel : '<b>' + _('ID_ENABLE_HEART_BEAT') + '</b>' boxLabel : '<b>' + _('ID_ENABLE_HEART_BEAT') + '</b>',
listeners : {
check : function(){
Ext.getCmp('btn_save').enable();
}
}
}, },
{ {
@@ -22,10 +27,12 @@ Ext.onReady(function() {
+ '" target="_blank" align="center">' + _('ID_MORE_INFORMATION') + '</a>.' + '" target="_blank" align="center">' + _('ID_MORE_INFORMATION') + '</a>.'
}, },
style : 'margin-left:20px' style : 'margin-left:20px'
}, }
], ],
buttons : [{ buttons : [{
id : 'btn_save',
text : _('ID_SAVE'), text : _('ID_SAVE'),
disabled: true,
handler : saveOption handler : saveOption
}] }]
}); });
@@ -54,7 +61,9 @@ Ext.onReady(function() {
frm.render(document.body); frm.render(document.body);
}); });
function saveOption() { function saveOption()
{
Ext.getCmp('btn_save').disable();
Ext.getCmp('frmHeart').getForm().submit( { Ext.getCmp('frmHeart').getForm().submit( {
url : 'processHeartBeatAjax?action=saveOption', url : 'processHeartBeatAjax?action=saveOption',
waitMsg : _('ID_SAVING_PROCESS'), waitMsg : _('ID_SAVING_PROCESS'),