commit 8352946980b30e0023baf6d839b1fe04bc42343d
parent fc986912dab1078f145d52daca185e1222d6d430
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Fri, 13 Nov 2015 10:43:10 +0100
Making Taler payment option the default (when wallet enabled)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/frontend/checkout.php b/src/frontend/checkout.php
@@ -62,7 +62,7 @@
<form name="tform" action="" method="POST">
<div id="opt-form" align="left"><br>
- <input type="radio" name="payment_system" value="lisa" checked>Lisa</input>
+ <input type="radio" name="payment_system" value="lisa">Lisa</input>
<br>
<input type="radio" name="payment_system" value="ycard">You Card</input>
<br>
@@ -151,6 +151,7 @@ function has_taler_wallet_cb(aEvent)
// enable the Taler payment option from the form
var tbutton = document.getElementById("taler-radio-button-id");
tbutton.removeAttribute("disabled");
+ tbutton.setAttribute("checked", "true");
};