Sha256: 570edf31741fcc2568b937457666718893513381b8fc3a04099bd12e665e49c5

Contents?: true

Size: 1.81 KB

Versions: 2

Compression:

Stored size: 1.81 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI""rubber_ring/image_uploader.js;FI"
pathname;TI"W/home/vagrant/rubber_ring/app/assets/javascripts/rubber_ring/image_uploader.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+£‹oQI"length;TiI"digest;TI"%008dd062c976d4ae40d942d6004621e1;FI"source;TI"(function() {
  this.ImageUploader = (function() {
    function ImageUploader(elements) {
      this.elements = elements;
      this.elements.dropzone({
        url: App.add_image_path
      });
      this.addListeners();
    }

    ImageUploader.prototype.addListeners = function() {
      var dz;

      dz = Dropzone.forElement(this.elements.get(0));
      dz.on("sending", function(file, xhr, formData) {
        var csrfParam, csrfToken;

        csrfParam = $('meta[name=csrf-param]').attr('content');
        csrfToken = $('meta[name=csrf-token]').attr('content');
        formData.append(csrfParam, csrfToken);
        formData.append('page_controller', App.controller);
        return formData.append('page_action', App.action);
      });
      return dz.on("success", function(file, response) {
        $(".already_uploaded_images").append("<img src='" + response.src + "' draggable='true' />");
        return new ImageDragger("[draggable=true]", ".rubber_ring_image");
      });
    };

    return ImageUploader;

  })();

}).call(this);
;TI"dependency_digest;TI"%915c925154c1c2f676a200edf658d316;FI"required_paths;T[I"W/home/vagrant/rubber_ring/app/assets/javascripts/rubber_ring/image_uploader.coffee;FI"dependency_paths;T[{I"	path;TI"W/home/vagrant/rubber_ring/app/assets/javascripts/rubber_ring/image_uploader.coffee;FI"
mtime;TI"2013-04-18T07:58:59+02:00;TI"digest;TI"%545f3ecef4f56af11028b85a5baa368d;FI"
_version;TI"%35f7b60363742cb867c4c7f8a36022b9;F

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubber_ring-0.1.1 test/dummy/tmp/cache/assets/development/sprockets/a5fc721c5e049fa401638dbbe6f01666
rubber_ring-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/a5fc721c5e049fa401638dbbe6f01666