PM-2695 Se corrigio ese error que solo ocurre en navegadores de tipo IE8
This commit is contained in:
@@ -327,7 +327,12 @@ Ext.onReady(function(){
|
|||||||
Ext.Msg.alert('Failure', 'Server reported:'+a.response.status+' '+a.response.statusText);
|
Ext.Msg.alert('Failure', 'Server reported:'+a.response.status+' '+a.response.statusText);
|
||||||
}
|
}
|
||||||
if (a.failureType === Ext.form.Action.SERVER_INVALID){
|
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') );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -347,12 +347,19 @@ Ext.onReady(function(){
|
|||||||
|
|
||||||
},
|
},
|
||||||
failure: function(f,a){
|
failure: function(f,a){
|
||||||
|
console.log(a);
|
||||||
|
console.log(a.failureType);
|
||||||
if (a.failureType === Ext.form.Action.CONNECT_FAILURE){
|
if (a.failureType === Ext.form.Action.CONNECT_FAILURE){
|
||||||
Ext.Msg.alert(_('ID_FAILURE'), _('ID_SERVER_REPORTED') + ':'+a.response.status+' '+a.response.statusText);
|
Ext.Msg.alert(_('ID_FAILURE'), _('ID_SERVER_REPORTED') + ':'+a.response.status+' '+a.response.statusText);
|
||||||
}
|
}
|
||||||
if (a.failureType === Ext.form.Action.SERVER_INVALID){
|
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') );
|
Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR') );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user