[git] gnupg-doc - branch, preview, updated. 7cfa1520d7a4169e2524ac912cca3714e79abba0

by Marcus Brinkmann cvs at cvs.gnupg.org
Wed Jun 7 11:49:11 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  7cfa1520d7a4169e2524ac912cca3714e79abba0 (commit)
      from  d9306211264d0d024daa9eed7acad41fce1c4cc2 (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 7cfa1520d7a4169e2524ac912cca3714e79abba0
Author: Marcus Brinkmann <marcus.brinkmann at ruhr-uni-bochum.de>
Date:   Wed Jun 7 11:49:09 2017 +0200

    web: Fix video selection.

diff --git a/web/share/campaign/campaign.js b/web/share/campaign/campaign.js
index e822858..a3083ea 100644
--- a/web/share/campaign/campaign.js
+++ b/web/share/campaign/campaign.js
@@ -120,11 +120,10 @@ $(document).ready(function() {
     let wanted_yt_id = get_param_from_url('play');
     $(".camp-video").each(function() {
 	let embed = $(this).data("embed");
-	if (embed == 'votd') {
-	    embed = VIDLIST;
+	if (embed != 'votd') {
+	    return;
 	}
-
-	let yt_ids = embed.split(",");
+	let yt_ids = VIDLIST.split(",");
 	let yt_id_idx = yt_ids.indexOf(wanted_yt_id);
 	if (yt_id_idx == -1) {
 	    wanted_yt_id = yt_ids[0];

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

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


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




More information about the Gnupg-commits mailing list