campaign: one -> on click handler
authorKai Michaelis <kai@gnupg.org>
Wed, 17 May 2017 14:51:34 +0000 (16:51 +0200)
committerKai Michaelis <kai@gnupg.org>
Wed, 17 May 2017 14:51:34 +0000 (16:51 +0200)
web/share/campaign/campaign.js

index a2ccfcc..5bd0f91 100644 (file)
@@ -63,7 +63,7 @@ $(document).ready(function() {
 
   for (let value of vals) {
     $(".amount-btn-" + value.toString()).attr("href", "#");
-    $(".amount-btn-" + value.toString()).one("click", function() {
+    $(".amount-btn-" + value.toString()).on("click", function() {
       $("#amountother").attr("value", value.toString());
       $("#currency option").attr("selected", false);
       $("#currency option[value='EUR']").attr("selected", true);