diff --git a/modules/misc/replace_video/command.js b/modules/misc/replace_video/command.js index 41bd4fe06..30af0088c 100644 --- a/modules/misc/replace_video/command.js +++ b/modules/misc/replace_video/command.js @@ -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(''); - - } - ) - + var width = $j(this).css('width'); + var height = $j(this).css('height'); + $j(this).replaceWith(''); + ); beef.net.send("<%= @command_url %>", <%= @command_id %>, "result=Replace Video Succesfull"); });