web: Do not use break in jquery-each-loop.
authorMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Wed, 17 May 2017 16:27:28 +0000 (18:27 +0200)
committerMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Wed, 17 May 2017 16:27:28 +0000 (18:27 +0200)
web/share/campaign/campaign.js

index 4936204..038edfb 100644 (file)
@@ -98,7 +98,6 @@ $(document).ready(function() {
        if (yt_id_idx != -1) {
            $(this).data("embed", wanted_yt_id);
            $(this).children("img").attr("src", "/share/campaign/img/thumbs/" + wanted_yt_id + ".jpg");
        if (yt_id_idx != -1) {
            $(this).data("embed", wanted_yt_id);
            $(this).children("img").attr("src", "/share/campaign/img/thumbs/" + wanted_yt_id + ".jpg");
-           break;
        }
     });
 
        }
     });