o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1396022040.0589492: @value"b {I" class:ETI"ProcessedAsset;FI"logical_path;TI"8locomotive/views/content_assets/picker_item_view.js;FI" pathname;TI"~/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/content_assets/picker_item_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2014-03-19T10:57:53+01:00;TI" length;Ti…I" digest;TI"%a62d3f537457f14b03ba0c3b5490829d;FI" source;TI"…(function() { var _base, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; (_base = Locomotive.Views).ContentAssets || (_base.ContentAssets = {}); Locomotive.Views.ContentAssets.PickerItemView = (function(_super) { __extends(PickerItemView, _super); function PickerItemView() { return PickerItemView.__super__.constructor.apply(this, arguments); } PickerItemView.prototype.tagName = 'li'; PickerItemView.prototype.className = 'asset'; PickerItemView.prototype.events = { 'click h4 a, .icon, .image': 'select_asset', 'click a.remove': 'remove_asset' }; PickerItemView.prototype.render = function() { $(this.el).html(ich.content_asset(this.model.toJSON())); return this; }; PickerItemView.prototype.refresh = function() { return $(this.el).html(ich.content_asset(this.model.toJSON())); }; PickerItemView.prototype.uploaded_at = function(loaded, total) { var percentage; percentage = (loaded / total) * 100; if (percentage < 20) { percentage = 20; } return this.$('.uploading .progress-bar').css('width', "" + percentage + "%"); }; PickerItemView.prototype.select_asset = function(event) { event.stopPropagation() & event.preventDefault(); return this.on_select(this.model); }; PickerItemView.prototype.on_select = function() { if (this.options.parent.options.on_select) { return this.options.parent.options.on_select(this.model); } }; PickerItemView.prototype.remove_asset = function(event) { var message; event.stopPropagation() & event.preventDefault(); message = $(event.target).data('confirm') || $(event.target).parent().data('confirm'); if (confirm(message)) { return this.model.destroy(); } }; return PickerItemView; })(Backbone.View); }).call(this); ;TI"dependency_digest;TI"%6d3f93e4d6823f77570698a70782e251;FI"required_paths;T[I"~/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/content_assets/picker_item_view.js.coffee;FI"dependency_paths;T[{I" path;TI"~/Users/didier/Documents/LocomotiveCMS/engine/app/assets/javascripts/locomotive/views/content_assets/picker_item_view.js.coffee;FI" mtime;TI"2014-03-19T10:57:53+01:00;TI" digest;TI"%64e1c0832041a4419568ba9f1ddf6a5c;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F