use a swal() loader to show test-in-progress state to user
This commit is contained in:
parent
006832de21
commit
61facddf24
1 changed files with 21 additions and 11 deletions
|
@ -137,7 +137,16 @@
|
|||
}
|
||||
|
||||
function testSettings() {
|
||||
return $.ajax({
|
||||
swal({
|
||||
type: 'info',
|
||||
title: 'Test Mail Settings',
|
||||
text: 'Click "Test" to begin the test.',
|
||||
showCancelButton: true,
|
||||
confirmButtonText: 'Test',
|
||||
closeOnConfirm: false,
|
||||
showLoaderOnConfirm: true
|
||||
}, function () {
|
||||
$.ajax({
|
||||
method: 'GET',
|
||||
url: Router.route('admin.settings.mail.test'),
|
||||
headers: { 'X-CSRF-Token': $('input[name="_token"]').val() }
|
||||
|
@ -150,6 +159,7 @@
|
|||
type: 'success'
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function saveAndTestSettings() {
|
||||
|
|
Loading…
Reference in a new issue