[git] gnupg-doc - branch, preview, updated. 994a1cda1733090cef6eafc6c5f17c56e23b7e21

by Marcus Brinkmann cvs at cvs.gnupg.org
Thu May 18 03:49:05 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".

The branch, preview has been updated
       via  994a1cda1733090cef6eafc6c5f17c56e23b7e21 (commit)
      from  63567c80847c7d5dab8cef9952a8fde93616be0c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 994a1cda1733090cef6eafc6c5f17c56e23b7e21
Author: Marcus Brinkmann <marcus.brinkmann at ruhr-uni-bochum.de>
Date:   Thu May 18 03:49:03 2017 +0200

    web: Use prop instead of attr for form changes through js.

diff --git a/web/share/campaign/campaign.js b/web/share/campaign/campaign.js
index 038edfb..2f4bdce 100644
--- a/web/share/campaign/campaign.js
+++ b/web/share/campaign/campaign.js
@@ -59,11 +59,11 @@ $(document).ready(function() {
     let value = vals[idx];
     $(".amount-btn-" + value.toString()).attr("href", "#");
     $(".amount-btn-" + value.toString()).on("click", function() {
-      $("#amountother").attr("value", value.toString());
-      $("#currency option").attr("selected", false);
-      $("#currency option[value='EUR']").attr("selected", true);
-      $("#recur option").attr("selected", false);
-      $("#recur option[value='12']").attr("selected", true);
+      $("#amountother").prop("value", value.toString());
+      $("#currency option").prop("selected", false);
+      $("#currency option[value='EUR']").prop("selected", true);
+      $("#recur option").prop("selected", false);
+      $("#recur option[value='12']").prop("selected", true);
     });
   }
 });

-----------------------------------------------------------------------

Summary of changes:
 web/share/campaign/campaign.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
The GnuPG website and other docs
http://git.gnupg.org




More information about the Gnupg-commits mailing list