fix other amount input prevent default button to be activated when clicking on other amount input for several times
MehrabKamrani

MehrabKamrani commited on 2015-12-26 07:25:13
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.

... ...
@@ -124,7 +124,7 @@
124 124
     var amount = $( this ).filter(".amnt-btn").val();
125 125
     if (amount == null) {
126 126
       amount = $("#exampleInputAmount").val();
127
-      if ($('#amount').val() == "") {
127
+      if ($('#amount').val() == "" && !($("#exampleInputAmount").hasClass("active")) ) {
128 128
         amount = 23
129 129
         $( "#amount23" ).addClass('active');
130 130
       } else if (this.id == "exampleInputAmount") {
131 131