Permalink
Browse files

revised javascript_uploadify_tag so that enters in the options correc…

…tly.
  • Loading branch information...
1 parent 4a7e354 commit 357f857f6f7b663f2095a423c14915180fad5fc2 @alainbloch committed Jan 15, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/uploadify_rails_helper.rb
View
6 lib/uploadify_rails_helper.rb
@@ -18,11 +18,11 @@ def javascript_uploadify_tag(options = {})
javascript_tag(%(
$(document).ready(function() {
$('##{uploadify_options[:id]}').uploadify({
- uploader : #{uploadify_options[:uploader]},
+ uploader : '#{uploadify_options[:uploader]}',
script : '#{uploadify_options[:url]}',
fileDataName : $('##{uploadify_options[:id]}')[0].name, // Extract correct name of upload field from form field
- cancelImg : #{uploadify_options[:cancel_image]},
- buttonText : #{uploadify_options[:button_text]},
+ cancelImg : '#{uploadify_options[:cancel_image]}',
+ buttonText : '#{uploadify_options[:button_text]}',
fileDesc : '#{uploadify_options[:dialog_file_description]} (#{allowed_extensions})',
fileExt : '#{allowed_extensions}',
sizeLimit : #{uploadify_options[:max_size]},

0 comments on commit 357f857

Please sign in to comment.