lib/scribd-carrierwave.rb in scribd-carrierwave-0.0.7 vs lib/scribd-carrierwave.rb in scribd-carrierwave-0.0.8
- old
+ new
@@ -51,10 +51,10 @@
end
def display_ipaper(options = {})
id = options.delete(:id)
<<-END
- <script type="text/javascript" src="http://www.scribd.com/javascripts/view.js"></script>
+ <script type="text/javascript" src="http://www.scribd.com/javascripts/scribd_api.js"></script>
<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)