summaryrefslogtreecommitdiff
path: root/assets/js/src
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/src')
-rw-r--r--assets/js/src/Popover.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/assets/js/src/Popover.js b/assets/js/src/Popover.js
index 5614de85..3a209e8a 100644
--- a/assets/js/src/Popover.js
+++ b/assets/js/src/Popover.js
@@ -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);
}
});
});