server/apps/user_ldap/js/settings.js

24 lines
554 B
JavaScript
Raw Normal View History

2012-04-23 16:57:06 +00:00
$(document).ready(function() {
$('#ldapSettings').tabs();
$('#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
});