Added Ajax loading icon for submit buttons

This commit is contained in:
Frederic Guillot
2016-03-05 07:56:58 -05:00
parent 9b68c3bc77
commit 0bd5328c19
79 changed files with 87 additions and 81 deletions

File diff suppressed because one or more lines are too long

View File

@@ -69,6 +69,11 @@ Popover.prototype.afterOpen = function() {
data: popoverForm.serialize(),
success: function(data, textStatus, request) {
self.afterSubmit(data, request, self);
},
beforeSend: function() {
var button = $('.popover-form button[type="submit"]');
button.html('<i class="fa fa-spinner fa-pulse"></i> ' + button.html());
button.attr("disabled", true);
}
});
});