Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding api version to scribd javascript

  • Loading branch information...
commit 6d3ec2455c0a46d9f9639f4bf97adf4bd37048e0 1 parent 6e6a86f
@aubreyrhodes authored
Showing with 3 additions and 2 deletions.
  1. +1 −0  lib/scribd-carrierwave.rb
  2. +2 −2 lib/scribd-carrierwave/version.rb
View
1  lib/scribd-carrierwave.rb
@@ -57,6 +57,7 @@ def display_ipaper(options = {})
<div id="embedded_flash#{id}">#{options.delete(:alt)}</div>
<script type="text/javascript">
var scribd_doc = scribd.Document.getDoc(#{ipaper_id}, '#{ipaper_access_key}');
+ scribd_doc.addParam( 'jsapi_version', 2 );
scribd_doc.addParam("hide_disabled_buttons", true)
scribd_doc.write("embedded_flash#{id}");
</script>
View
4 lib/scribd-carrierwave/version.rb
@@ -1,3 +1,3 @@
-module ScribdCarrierwave
- VERSION = "0.0.6"
+module ScribdCarrierWave
+ VERSION = "0.0.7"
end
Please sign in to comment.
Something went wrong with that request. Please try again.