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

nima at torproject.org nima at torproject.org
Mon Dec 21 00:30:46 UTC 2015


commit 35065d494d775b0b95ef8388a9a2205fa2a5ee56
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