forked from leftypol/leftypol
youtube.js: fix previous commit
This commit is contained in:
parent
b5d33b0e1c
commit
2edbb1c210
1 changed files with 2 additions and 3 deletions
|
@ -24,9 +24,8 @@
|
|||
|
||||
|
||||
onready(function(){
|
||||
$('div.video-container a').attr('href', 'javascript:void(0)');
|
||||
$('div.video-container').click(function() {
|
||||
var videoID = $(this).data('video');
|
||||
$('div.video-container a').click(function() {
|
||||
var videoID = $(this).parentNode.data('video');
|
||||
|
||||
$(this).html('<iframe style="float:left;margin: 10px 20px" type="text/html" width="360" height="270" src="http://www.youtube.com/embed/' + videoID + '?autoplay=1" frameborder="0"/>');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue