From 95c78ae907d9e742dc4b3114abbbea92d4bfd7c9 Mon Sep 17 00:00:00 2001
From: User Name <user@example.com>
Date: Wed, 16 Mar 2011 15:59:39 +1000
Subject: [PATCH] Issue #893974 by larowlan: play nice with fbconnect

---
 js/wysiwyg_imageupload_uploadform.js  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
 create mode 100644 js/fbconnect-integration-893974.patch

diff --git a/js/fbconnect-integration-893974.patch b/js/fbconnect-integration-893974.patch
new file mode 100644
index 0000000..e69de29
diff --git a/js/wysiwyg_imageupload_uploadform.js b/js/wysiwyg_imageupload_uploadform.js
index ca8b68b..deb13d7 100644
--- a/js/wysiwyg_imageupload_uploadform.js
+++ b/js/wysiwyg_imageupload_uploadform.js
@@ -4,7 +4,7 @@ Drupal.behaviors.wysiwyg_imageupload_uploadform = function () {
   $('#edit-wysiwyg-imageupload-file').bind('change', function() {
       $('.dialog-page-content *').hide();
       $('.dialog-page-content').addClass('uploading');
-      $('form').submit();
+      $(this).parents('form').submit();
     }
   );
 }
-- 
1.7.2.3

