{I" class:ETI"ProcessedAsset;FI"logical_path;TI"!rubber_ring/image_manager.js;FI" pathname;TI"b/home/vagrant/development/rubber_ring/app/assets/javascripts/rubber_ring/image_manager.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+³ÖtQI" length;Ti?I" digest;TI"%759fc46810445e8c5f6877cd9d0eba8a;FI" source;TI"?(function() { var __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; $(function() { new ImageUploader($(".image_upload_box")); new ImageDragger("[draggable=true]", ".rubber_ring_image"); return $(".remove_not_used_images").on("click", function() { var item, pm, uploaded_image, uploaded_images, used_images, _i, _len, _results; pm = new PersistenceManager(); uploaded_images = (function() { var _i, _len, _ref, _results; _ref = $(".already_uploaded_images img"); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { item = _ref[_i]; _results.push($(item).attr("src")); } return _results; })(); used_images = (function() { var _i, _len, _ref, _results; _ref = $(".rubber_ring_image"); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { item = _ref[_i]; _results.push($(item).attr("src")); } return _results; })(); _results = []; for (_i = 0, _len = uploaded_images.length; _i < _len; _i++) { uploaded_image = uploaded_images[_i]; if (__indexOf.call(used_images, uploaded_image) < 0) { pm.remove_image(uploaded_image); _results.push($(".already_uploaded_images img[src=\"" + uploaded_image + "\"]").remove()); } else { _results.push(void 0); } } return _results; }); }); }).call(this); ;TI"dependency_digest;TI"%c85e28531c0fa33550921b076c74ad38;FI"required_paths;T[I"b/home/vagrant/development/rubber_ring/app/assets/javascripts/rubber_ring/image_manager.coffee;FI"dependency_paths;T[{I" path;TI"b/home/vagrant/development/rubber_ring/app/assets/javascripts/rubber_ring/image_manager.coffee;FI" mtime;TI"2013-04-22T08:20:35+02:00;TI" digest;TI"%72083723f224da7c62c504d6cdcd0258;FI" _version;TI"%1e2632a10b8c877576b37720d5bf8883;F