[git] gnupg-doc - branch, preview, updated. 4d732209433df0968c3383434769b102c91c1917
by Justus Winter
cvs at cvs.gnupg.org
Thu May 18 10:13:12 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 4d732209433df0968c3383434769b102c91c1917 (commit)
from edee8d2708769f5cdd1953a706e4ac7d04daef9e (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 4d732209433df0968c3383434769b102c91c1917
Author: Justus Winter <justus at g10code.com>
Date: Thu May 18 10:13:06 2017 +0200
campaign: prevent event propagation, prevents the jump to the top
diff --git a/web/share/campaign/campaign.js b/web/share/campaign/campaign.js
index 2f4bdce..95d1bd6 100644
--- a/web/share/campaign/campaign.js
+++ b/web/share/campaign/campaign.js
@@ -58,12 +58,13 @@ $(document).ready(function() {
for (let idx = 0; idx < vals.length; ++idx) {
let value = vals[idx];
$(".amount-btn-" + value.toString()).attr("href", "#");
- $(".amount-btn-" + value.toString()).on("click", function() {
+ $(".amount-btn-" + value.toString()).on("click", function(event) {
$("#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);
+ event.preventDefault();
});
}
});
-----------------------------------------------------------------------
Summary of changes:
web/share/campaign/campaign.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
The GnuPG website and other docs
http://git.gnupg.org
More information about the Gnupg-commits
mailing list