Skip to content

Commit

Permalink
Fixing ipaper javascript output
Browse files Browse the repository at this point in the history
  • Loading branch information
aubreyrhodes committed Dec 13, 2011
1 parent 026b1ea commit 2864288
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/scribd-carrierwave.rb
Expand Up @@ -59,8 +59,8 @@ def display_ipaper(options = {})
var scribd_doc = scribd.Document.getDoc(#{ipaper_id}, '#{ipaper_access_key}'); var scribd_doc = scribd.Document.getDoc(#{ipaper_id}, '#{ipaper_access_key}');
scribd_doc.addParam( 'jsapi_version', 2 ); scribd_doc.addParam( 'jsapi_version', 2 );
#{options.map do |k,v| #{options.map do |k,v|
"scribd_doc.addParam('#{k.to_s}', #{v.is_a?(String) ? "'#{v.to_s}'" : v.to_s})" " scribd_doc.addParam('#{k.to_s}', #{v.is_a?(String) ? "'#{v.to_s}'" : v.to_s});"
end.join('\n')} end.join("\n")}
scribd_doc.write("embedded_flash#{id}"); scribd_doc.write("embedded_flash#{id}");
</script> </script>
END END
Expand Down
2 changes: 1 addition & 1 deletion lib/scribd-carrierwave/version.rb
@@ -1,3 +1,3 @@
module ScribdCarrierWave module ScribdCarrierWave
VERSION = "0.1.0" VERSION = "0.1.1"
end end

0 comments on commit 2864288

Please sign in to comment.