[FIX] web_editor: remove related videos at the end of youtube embeds

If a user embeds a youtube video on his website, he has no option to remove the
suggestion of related videos at the end of playback.
Since there is no good reason to have it, we disable the related videos in all
cases.

opw 1868380
This commit is contained in:
len-odoo
2018-08-10 09:30:41 +02:00
committed by len-odoo
parent 215754a7db
commit 47c7d123da
@@ -820,6 +820,9 @@ var VideoDialog = Widget.extend({
return {errorCode: 1};
}
if (ytMatch) {
$video.attr('src', $video.attr('src') + '&rel=0');
}
if (options.loop && (ytMatch || vimMatch)) {
$video.attr('src', $video.attr('src') + '&loop=1');
}