BUG_12828 When not choosing a ldap provider an error is displayed
When not choosing a ldap provider and pressing continue, an error is displayed and it`s text says "File: Edit.xml not exists.".
This commit is contained in:
@@ -93,6 +93,7 @@ var cboxAuthSourse = new Ext.form.ComboBox({
|
|||||||
else
|
else
|
||||||
window.location = 'authSources_New?AUTH_SOURCE_PROVIDER='+formAuthSourceOptoins.getForm().findField('AUTH_SOURCE_PROVIDER').getValue();
|
window.location = 'authSources_New?AUTH_SOURCE_PROVIDER='+formAuthSourceOptoins.getForm().findField('AUTH_SOURCE_PROVIDER').getValue();
|
||||||
return false;*/
|
return false;*/
|
||||||
|
if (formAuthSourceOptoins.getForm().findField('AUTH_SOURCE_PROVIDER').getValue() != '') {
|
||||||
formAuthSourceOptoins.getForm().submit({
|
formAuthSourceOptoins.getForm().submit({
|
||||||
waitTitle : " ",
|
waitTitle : " ",
|
||||||
url: '../adminProxy/testingOption',
|
url: '../adminProxy/testingOption',
|
||||||
@@ -105,15 +106,13 @@ var cboxAuthSourse = new Ext.form.ComboBox({
|
|||||||
timeout : 500,
|
timeout : 500,
|
||||||
success: function(f,a){
|
success: function(f,a){
|
||||||
resp = Ext.util.JSON.decode(a.response.responseText);
|
resp = Ext.util.JSON.decode(a.response.responseText);
|
||||||
// alert(resp.optionAuthS);return false;
|
if (resp.success) {
|
||||||
// alert(resp.sUID);return false;
|
if (resp.optionAuthS=='ldap') {
|
||||||
if (resp.success){
|
|
||||||
if(resp.optionAuthS=='ldap')
|
|
||||||
// window.location = 'authSources_kindof?sUID='+resp.sUID+'&sprovider='+resp.optionAuthS;
|
|
||||||
window.location = 'authSources_kindof?sprovider='+resp.optionAuthS;
|
window.location = 'authSources_kindof?sprovider='+resp.optionAuthS;
|
||||||
else
|
} else {
|
||||||
window.location = 'authSources_New?AUTH_SOURCE_PROVIDER='+resp.optionAuthS;
|
window.location = 'authSources_New?AUTH_SOURCE_PROVIDER='+resp.optionAuthS;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
failure: function(f,a){
|
failure: function(f,a){
|
||||||
@@ -124,5 +123,8 @@ var cboxAuthSourse = new Ext.form.ComboBox({
|
|||||||
Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR'));
|
Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
Ext.Msg.alert( _('ID_FAILURE'), _('ID_CHOOSE_PROVIDER'));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user