PM-2695 Se corrigio ese error que solo ocurre en navegadores de tipo IE8

This commit is contained in:
dheeyi
2015-05-09 13:17:31 -04:00
parent 05122c9251
commit 0a760f7de6
2 changed files with 14 additions and 2 deletions

View File

@@ -327,7 +327,12 @@ Ext.onReady(function(){
Ext.Msg.alert('Failure', 'Server reported:'+a.response.status+' '+a.response.statusText);
}
if (a.failureType === Ext.form.Action.SERVER_INVALID){
Ext.Msg.alert('Warning', 'you have an error');
if(Ext.isIE){
success = true;
window.location = 'authSources_List';
}else{
Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR') );
}
}
}
});

View File

@@ -347,11 +347,18 @@ Ext.onReady(function(){
},
failure: function(f,a){
console.log(a);
console.log(a.failureType);
if (a.failureType === Ext.form.Action.CONNECT_FAILURE){
Ext.Msg.alert(_('ID_FAILURE'), _('ID_SERVER_REPORTED') + ':'+a.response.status+' '+a.response.statusText);
}
if (a.failureType === Ext.form.Action.SERVER_INVALID){
Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR') );
if(Ext.isIE){
success = true;
window.location = 'authSources_List';
}else{
Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR') );
}
}
}
});