Revert to getElementById in FileUploader, jquery isn't working
This commit is contained in:
parent
47f040f740
commit
bd6a8df7cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue