mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 22:37:28 -08:00
Added spinner for LDAP test
This commit is contained in:
parent
40b56cfad7
commit
a00198abc7
|
@ -248,6 +248,8 @@
|
|||
$("#ldaptest").click(function(){
|
||||
$("#ldaptestrow").removeClass('success');
|
||||
$("#ldaptestrow").removeClass('danger');
|
||||
$("#ldapteststatus").html('');
|
||||
$("#ldaptesticon").html('<i class="fa fa-spinner spin"></i>');
|
||||
$.ajax({
|
||||
url: '{{ route('settings/ldaptest') }}',
|
||||
type: 'GET',
|
||||
|
@ -257,14 +259,16 @@
|
|||
success: function (data) {
|
||||
// console.dir(data);
|
||||
//console.log(data.responseJSON.message);
|
||||
$("#ldaptesticon").html('');
|
||||
$("#ldaptestrow").addClass('success');
|
||||
$("#ldapteststatus").html('<i class="fa fa-check text-success"></i>It worked!');
|
||||
$("#ldapteststatus").html('<i class="fa fa-check text-success"></i> It worked!');
|
||||
//$('#ldapteststatus').html('<i class="fa fa-check text-success"></i>');
|
||||
},
|
||||
|
||||
error: function (data) {
|
||||
//console.dir(data);
|
||||
//console.log(data.responseJSON.message);
|
||||
$("#ldaptesticon").html('');
|
||||
$("#ldaptestrow").addClass('danger');
|
||||
$("#ldaptesticon").html('<i class="fa fa-exclamation-triangle text-danger"></i>');
|
||||
$('#ldapteststatus').text(data.responseJSON.message);
|
||||
|
|
Loading…
Reference in a new issue