From: Michael Tremer Date: Thu, 19 Jul 2018 14:24:18 +0000 (+0100) Subject: donation: Remove second step for address X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d9d6d3c30c6f138a8275ceed3f829fa8af8f6524;p=ipfire.org.git donation: Remove second step for address It is better when the payment method is selected later. This keeps the form cleaner and allows the user to change it later. Signed-off-by: Michael Tremer --- diff --git a/src/templates/donate.html b/src/templates/donate.html index 4393e263..8a240fac 100644 --- a/src/templates/donate.html +++ b/src/templates/donate.html @@ -72,78 +72,6 @@
-
-
Choose payment
- -
- - -
- -
- - - -
- -
- - - -
-
-
- -
@@ -230,16 +158,63 @@
+
+ - +
+
-
- +
+ + + Amex + + + + + Mastercard + + + + + Visa + + + + + + + PayPal +
@@ -358,16 +333,6 @@ } }); - $("input[name='frequency']").on("change", function() { - var frequency = $(this).val(); - - if (frequency == "monthly") { - $(".paypal").hide(); - } else { - $(".paypal").show(); - } - }) - // Copy amount when clicking on a radio button $("input[name='amount-selector']").on("change", function() { var value = $(this).val(); @@ -390,12 +355,6 @@ } }); - $("#next").click(function (event) { - event.preventDefault(); - - $(this).hide(); - }); - $("#donate").click(function (event) { var frequency = $("input[name='frequency']").val();