Sha256: ca6c1acae68efb316f03ae4e3e3b9c3dd346af49141da4319f934d5eab708e9a

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

// Assigns default Plupload settings that work with the asset pipeline.
(function ($) {
  var proxied = plupload.Uploader;

  plupload.Uploader = function (settings) {
    settings = $.extend({}, settings, {
      multipart: true,
      flash_swf_url: '<%= asset_path("Moxie.swf") %>',
      silverlight_xap_url: '<%= asset_path("Moxie.xap") %>'
    });

    return proxied.call(this, settings);
  };

  plupload.Uploader.prototype = proxied.prototype;
}(jQuery));

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plupload-rails-1.2.1 app/assets/javascripts/plupload.settings.js.erb