Index: swfupload-settings.tpl.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/image_fupload/swfupload-settings.tpl.php,v retrieving revision 1.17 diff -u -p -r1.17 swfupload-settings.tpl.php --- swfupload-settings.tpl.php 21 Mar 2009 08:32:50 -0000 1.17 +++ swfupload-settings.tpl.php 17 May 2009 18:41:09 -0000 @@ -8,7 +8,8 @@ var queue_complete = 0; // contains number of queued and successfully uploaded images var count_failed_uploads = 0; // Number of failed uploads - window.onload = function() { + Drupal.behaviors.imageFUpload = function(context) { + if ($('#spanUploadButton').length == 0) return; var settings = { flash_url : "/swfupload/swfupload.swf", upload_url: "", // Relative to the SWF file @@ -120,4 +121,4 @@ if (redirect_url_main == "" && numFilesUploaded > 0) fupload_redirect(); - } \ No newline at end of file + }