Modals save button added button loading.

This commit is contained in:
cuneytsenturk
2018-11-05 17:24:51 +03:00
parent cebb00560f
commit a6a254b03f
6 changed files with 26 additions and 0 deletions

View File

@@ -121,9 +121,12 @@
data: $("#form-add-payment").serialize(),
headers: { 'X-CSRF-TOKEN': '{{ csrf_token() }}' },
beforeSend: function() {
$('#button-add-payment').button('loading');
$('#modal-add-payment .modal-content').append('<div id="loading" class="text-center"><i class="fa fa-spinner fa-spin fa-5x checkout-spin"></i></div>');
},
complete: function() {
$('#button-add-payment').button('reset');
$('#loading').remove();
},
success: function(json) {