Added Ajax loading icon for submit buttons
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user