o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1381401967.53735: @value"k{I" class:EFI"ProcessedAsset;FI"logical_path;FI"1locomotive/views/shared/asset_picker_view.js;TI" pathname;FI"Œ/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.2.3/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-10-10T12:39:17+02:00;FI" length;FiI" digest;F"%95cfa249acc8233e0e58e043641cd889I" source;FI"(function() { var _base, _ref, __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).Shared || (_base.Shared = {}); Locomotive.Views.Shared.AssetPickerView = (function(_super) { __extends(AssetPickerView, _super); function AssetPickerView() { _ref = AssetPickerView.__super__.constructor.apply(this, arguments); return _ref; } AssetPickerView.prototype.tag = 'div'; AssetPickerView.prototype.initialize = function() { _.bindAll(this, 'add_assets', 'add_asset', 'remove_asset'); this.collection.bind('reset', this.add_assets); this.collection.bind('add', this.add_asset); return this.collection.bind('remove', this.remove_asset); }; AssetPickerView.prototype.render = function() { $(this.el).html(this.template()()); this.create_dialog(); return this; }; AssetPickerView.prototype.template = function() {}; AssetPickerView.prototype.fetch_assets = function() {}; AssetPickerView.prototype.build_uploader = function(el, link) {}; AssetPickerView.prototype.create_dialog = function() { var _this = this; return this.dialog || (this.dialog = $(this.el).dialog({ autoOpen: false, modal: true, zIndex: window.application_view.unique_dialog_zindex(), width: 650, create: function(event, ui) { var actions, input, link; $(_this.el).prev().find('.ui-dialog-title').html(_this.$('h2').html()); _this.$('h2').remove(); actions = _this.$('.dialog-actions').appendTo($(_this.el).parent()).addClass('ui-dialog-buttonpane ui-widget-content ui-helper-clearfix'); actions.find('#close-link').click(function(event) { return _this.close(event); }); input = actions.find('input[type=file]'); link = actions.find('#upload-link'); return _this.build_uploader(input, link); }, open: function(event, ui, extra) { return $(_this.el).dialog('overlayEl').bind('click', function() { return _this.close(); }); } })); }; AssetPickerView.prototype.open = function() { return $(this.el).dialog('open'); }; AssetPickerView.prototype.close = function(event) { if (event != null) { event.stopPropagation() & event.preventDefault(); } $(this.el).dialog('overlayEl').unbind('click'); return $(this.el).dialog('close'); }; AssetPickerView.prototype.shake = function() { return $(this.el).parents('.ui-dialog').effect('shake', { times: 4 }, 100); }; AssetPickerView.prototype.center = function() { return $(this.el).dialog('option', 'position', 'center'); }; AssetPickerView.prototype.add_assets = function(collection) { var _this = this; collection.each(function(asset) { return _this.add_asset(asset, true); }); return this._refresh(); }; AssetPickerView.prototype.add_asset = function(asset, first) {}; AssetPickerView.prototype.remove_asset = function(asset) {}; AssetPickerView.prototype._move_to_last_asset = function() { var limit; limit = this.$('ul.list li.clear').position(); if (limit != null) { return this.$('ul.list').animate({ scrollTop: limit.top }, 100); } }; AssetPickerView.prototype._refresh = function() { if (this.collection.length === 0) { this.$('ul.list').hide() & this.$('p.no-items').show(); } else { this.$('p.no-items').hide() & this.$('ul.list').show(); this._on_refresh(); } if (this.dialog != null) { return this.center(); } }; AssetPickerView.prototype._on_refresh = function() {}; AssetPickerView.prototype._reset = function() {}; return AssetPickerView; })(Backbone.View); }).call(this); ;TI"dependency_digest;F"%63c1460d0dc67e4fa19e4179b4e9a89fI"required_paths;F[I"Œ/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.2.3/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee;TI"dependency_paths;F[{I" path;FI"Œ/Users/papipo/.rvm/gems/ruby-1.9.3-p448/gems/locomotive_cms-2.2.3/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee;TI" mtime;FI"2013-10-10T12:39:17+02:00;FI" digest;F"%fcd46d674e5401eae1d7f4538e3fbb37I" _version;F"%ffd318ca8b794f42f5029101c2cf5d91