From 68b137c8f92fe14da9551e543ea38214cec141f6 Mon Sep 17 00:00:00 2001 From: Johan Le Baut Date: Sun, 13 Feb 2022 12:54:39 +0100 Subject: [PATCH] add button spinner --- templates/landing_form.html | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/templates/landing_form.html b/templates/landing_form.html index 13b5438..72ea4b0 100644 --- a/templates/landing_form.html +++ b/templates/landing_form.html @@ -34,7 +34,7 @@

Test d'éligibilité par PTO

-
+
- +
@@ -208,10 +208,25 @@ }); $('#formAddressTest').submit(function(eventObj) { + // disable button + $("#btnTestAdresse").prop("disabled", true); + // add spinner to button + $("#btnTestAdresse").html( + `Test...` + ); $('#formAddressTest').append(``); $('#formAddressTest').append(``); return true; }); + $('#formPtoTest').submit(function(eventObj) { + // disable button + $("#buttonPtoTest").prop("disabled", true); + // add spinner to button + $("#buttonPtoTest").html( + `Test...` + ); + return true; + }); });