PM-2695 Se soluciono ese error en navegadores de tipo IE

This commit is contained in:
dheeyi
2015-05-09 13:21:25 -04:00
parent 0a760f7de6
commit e58d871190
2 changed files with 11 additions and 13 deletions

View File

@@ -327,12 +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){
if(Ext.isIE){
success = true;
window.location = 'authSources_List';
}else{
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') );
}
}
}
});

View File

@@ -347,18 +347,16 @@ 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){
if(Ext.isIE){
success = true;
window.location = 'authSources_List';
}else{
Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR') );
}
success = true;
window.location = 'authSources_List';
}else{
Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR') );
}
}
}
});