2012-04-23 16:57:06 +00:00
|
|
|
$(document).ready(function() {
|
|
|
|
$('#ldapSettings').tabs();
|
2012-07-26 16:10:53 +00:00
|
|
|
$('#ldap_action_test_connection').button();
|
|
|
|
$('#ldap_action_test_connection').click(function(event){
|
|
|
|
event.preventDefault();
|
|
|
|
$.post(
|
|
|
|
OC.filePath('user_ldap','ajax','testConfiguration.php'),
|
|
|
|
$('#ldap').serialize(),
|
|
|
|
function (result) {
|
|
|
|
if (result.status == 'success') {
|
|
|
|
OC.dialogs.alert(
|
|
|
|
result.message,
|
|
|
|
'Connection test succeeded'
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
OC.dialogs.alert(
|
|
|
|
result.message,
|
|
|
|
'Connection test failed'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
});
|
2012-04-23 16:57:06 +00:00
|
|
|
});
|