[tor-commits] [webwml/master] fix other amount input in donation page

sebastian at torproject.org sebastian at torproject.org
Tue May 3 08:46:12 UTC 2016


commit 795b6186d3c1da82329448d123845abff7bd16f2
Author: MehrabKamrani <mk.zizou at gmail.com>
Date:   Sun May 1 03:32:25 2016 +0800

    fix other amount input in donation page
---
 donate/en/donate.wml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/donate/en/donate.wml b/donate/en/donate.wml
index feccc11..df5a331 100644
--- a/donate/en/donate.wml
+++ b/donate/en/donate.wml
@@ -124,7 +124,7 @@ Tor is an essential part of the Internet freedom infrastructure, and I'm looking
     var amount = $( this ).filter(".amnt-btn").val();
     if (amount == null) {
       amount = $("#exampleInputAmount").val();
-      if ($('#amount').val() == "") {
+      if ($('#amount').val() == "" && !($("#exampleInputAmount").hasClass("active")) ) {
         amount = 23
         $( "#amount23" ).addClass('active');
       } else if (this.id == "exampleInputAmount") {



More information about the tor-commits mailing list