Revert to getElementById in FileUploader, jquery isn't working

This commit is contained in:
Raphael 2010-11-01 17:07:28 -07:00
parent 47f040f740
commit bd6a8df7cc

View file

@ -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}"