-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

:javascript
  function createUploader(){
    var uploader = new qq.FileUploader({
        element: $('#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}"
    });
  }
  window.onload = createUploader;

#file-upload

-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

:javascript
  function createUploader(){
    var uploader = new qq.FileUploader({
        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}"
    });
  }
  window.onload = createUploader;

#file-upload

Revert to getElementById in FileUploader, jquery isn't working
Revert to getElementById in FileUploader, jquery isn't working
