Sha256: 87e6cce18f42fa2dc4c8764831fd82912c6a04f505ff3e64ff1aaabbfebfd71d

Contents?: true

Size: 1.84 KB

Versions: 2

Compression:

Stored size: 1.84 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI""rubber_ring/image_uploader.js;FI"
pathname;TI"c/home/vagrant/development/rubber_ring/app/assets/javascripts/rubber_ring/image_uploader.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+³ÖtQI"length;TiI"digest;TI"%6c29d473339fd2cce11540368d38f013;FI"source;TI"(function() {
  this.ImageUploader = (function() {
    function ImageUploader(element) {
      element.dropzone({
        url: App.add_image_path
      });
      this.addListeners(element);
    }

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

      dz = Dropzone.forElement(element.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' class='img-polaroid' />");
        return new ImageDragger("[draggable=true]", ".rubber_ring_image");
      });
    };

    return ImageUploader;

  })();

}).call(this);
;TI"dependency_digest;TI"%fbe2a7e34ab4c67d634d3d3e26fd6715;FI"required_paths;T[I"c/home/vagrant/development/rubber_ring/app/assets/javascripts/rubber_ring/image_uploader.coffee;FI"dependency_paths;T[{I"	path;TI"c/home/vagrant/development/rubber_ring/app/assets/javascripts/rubber_ring/image_uploader.coffee;FI"
mtime;TI"2013-04-22T08:20:35+02:00;TI"digest;TI"%308e1bde27c72f6c09cec6857fe44382;FI"
_version;TI"%1e2632a10b8c877576b37720d5bf8883;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/7d7c5e1189ffb57c1027fbb1f4849056
rubber_ring-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/7d7c5e1189ffb57c1027fbb1f4849056