spec/dummy/tmp/cache/assets/CBE/790/sprockets%2F132dfd2f58e4d84908ff040052698c95 in locomotivecms-search-0.2.8 vs spec/dummy/tmp/cache/assets/CBE/790/sprockets%2F132dfd2f58e4d84908ff040052698c95 in locomotivecms-search-0.3.0

- old
+ new

@@ -1,21 +1,19 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384093243.1099572: @value"Ø -{I" +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"2013-03-19T10:22:54+01:00;TI" length;TiûI" digest;TI"%b1b8ac65d8b3ad354f47dd46e71351ae;FI" source;TI"û(function() { - var _base, _ref, +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() { - _ref = PickerItemView.__super__.constructor.apply(this, arguments); - return _ref; + return PickerItemView.__super__.constructor.apply(this, arguments); } PickerItemView.prototype.tagName = 'li'; PickerItemView.prototype.className = 'asset'; @@ -28,10 +26,23 @@ 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); }; @@ -53,7 +64,7 @@ return PickerItemView; })(Backbone.View); }).call(this); -;TI"dependency_digest;TI"%1bf5a4dc7e437592cee98222dfbd624e;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"2013-03-19T10:22:54+01:00;TI" digest;TI"%41bb67c79ae603d6f102f4e3b9e739e5;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F +;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 \ No newline at end of file