diff --git a/workflow/engine/templates/authSources/authSourcesEdit.js b/workflow/engine/templates/authSources/authSourcesEdit.js index 76e845dbd..db394d455 100644 --- a/workflow/engine/templates/authSources/authSourcesEdit.js +++ b/workflow/engine/templates/authSources/authSourcesEdit.js @@ -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') ); + } } } }); diff --git a/workflow/engine/templates/authSources/authSourceskindof.js b/workflow/engine/templates/authSources/authSourceskindof.js index c26745472..c76731eaf 100644 --- a/workflow/engine/templates/authSources/authSourceskindof.js +++ b/workflow/engine/templates/authSources/authSourceskindof.js @@ -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') ); + } } } });