+
@@ -274,8 +274,16 @@
var button = $(event.relatedTarget);
var youtube_id = button.data('youtubeid');
var comment = button.data('comment');
+ var options = button.data('options');
var modal = $(this);
- modal.find('.modal-body iframe')[0].src = 'https://www.youtube.com/embed/' + youtube_id + "?modestbranding=1&rel=0&html5=1";
+
+ var youtube_url = 'https://www.youtube.com/embed/' + youtube_id + "?modestbranding=1&rel=0&html5=1"
+
+ if (options) {
+ youtube_url += '&' + options;
+ }
+
+ modal.find('.modal-body iframe')[0].src = youtube_url;
modal.find('.modal-body p')[0].innerHTML = comment;
});
$('#youtubeModal').on('hidden.bs.modal', function () {