This will tell people that something is happening as processing the
donation can take a short moment...
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
<div class="block">
<div class="control">
- <input type="submit" class="button is-primary is-outlined is-fullwidth is-medium"
- id="donate" value="{{ _("Donate Now") }}">
+ <button type="submit" class="button is-primary is-fullwidth is-medium" id="donate">
+ {{ _("Donate Now") }}
+ </button>
</div>
</div>
// Disable all submit buttons after the form has been submitted
form.one("submit", function() {
+ // Show that something is happening...
+ submit.addClass("is-loading");
+
+ // Prevent the user from submitting the form again
submit.prop("disabled", true);
});