[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit c25b5d99b247bb4432ec6f7791a7707e0172822f
Author: MehrabKamrani <mk.zizou@xxxxxxxxx>
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") {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits