--- a/sites/all/modules/contrib/swfupload/js/swfupload_widget.js
+++ b/sites/all/modules/contrib/swfupload/js/swfupload_widget.js
@@ -409,10 +409,10 @@ function SWFU(id, settings) {
           };
         }).parents('td').dblclick(function() {
           ref.toggleInput($(this).find('span'), true, file);
-        }).find('.wrapper').append($('<a href="#" />').text(Drupal.t('edit')).addClass('toggle-editable').click(function() {
+        }).find('.wrapper').append($('<a href="#" />').text(Drupal.t('edit')).addClass('toggle-editable')).click(function() {
           ref.toggleInput($(this).parent().find('span'), true, file);
           return false;
-        }));
+        });
         break;
 
       case 'drag_enable':