o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384182737.6027699: @value"¾{I" class:ETI"ProcessedAsset;FI"logical_path;TI"1locomotive/views/shared/asset_picker_view.js;FI" pathname;TI"¡/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-11-11T00:40:29+01:00;TI" length;TiI" digest;TI"%95cfa249acc8233e0e58e043641cd889;FI" source;TI"(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;TI"%63c1460d0dc67e4fa19e4179b4e9a89f;FI"required_paths;T[I"¡/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee;FI"dependency_paths;T[{I" path;TI"¡/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.1/app/assets/javascripts/locomotive/views/shared/asset_picker_view.js.coffee;FI" mtime;TI"2013-11-11T00:40:29+01:00;TI" digest;TI"%fcd46d674e5401eae1d7f4538e3fbb37;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F