From bd6a8df7cc2d9ec2739ef7aa45b017c49019a9c7 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 1 Nov 2010 17:07:28 -0700 Subject: [PATCH] Revert to getElementById in FileUploader, jquery isn't working --- app/views/photos/_new_photo.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/photos/_new_photo.haml b/app/views/photos/_new_photo.haml index a6f1f5908..dd029008e 100644 --- a/app/views/photos/_new_photo.haml +++ b/app/views/photos/_new_photo.haml @@ -5,7 +5,7 @@ :javascript function createUploader(){ var uploader = new qq.FileUploader({ - element: $('#file-upload'), + element: document.getElementById('file-upload'), params: {'photo' : { 'album_id' : "#{album_id}", 'to' : "#{aspect_id}"}, 'set_profile_image' : "#{set_profile_image if defined?(set_profile_image)}"}, allowedExtensions: ['jpg', 'jpeg', 'png', 'gif'], action: "#{photos_path}"