[tor-commits] [webwml/staging] fix other amount input

nima at torproject.org nima at torproject.org
Sat Dec 26 06:27:16 UTC 2015


commit c25b5d99b247bb4432ec6f7791a7707e0172822f
Author: MehrabKamrani <mk.zizou at gmail.com>
Date:   Fri Dec 18 09:21:17 2015 +0800

    fix other amount input
    prevent default button to be activated when clicking on other amount input for several times
---
 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 791f4cd..44d6432 100644
--- a/donate/en/donate.wml
+++ b/donate/en/donate.wml
@@ -124,7 +124,7 @@
     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