o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1384182742.531303: @value" {I" class:ETI"ProcessedAsset;FI"logical_path;TI"/locomotive/views/sites/memberships_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/sites/memberships_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-11-11T00:40:29+01:00;TI" length;TiàI" digest;TI"%61990ecd4bd0aafa5bb6e7d176dbbe73;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).Sites || (_base.Sites = {}); Locomotive.Views.Sites.MembershipsView = (function(_super) { var _entry_views; __extends(MembershipsView, _super); function MembershipsView() { _ref = MembershipsView.__super__.constructor.apply(this, arguments); return _ref; } MembershipsView.prototype.tagName = 'div'; MembershipsView.prototype.className = 'list'; _entry_views = []; MembershipsView.prototype.render = function() { this.render_entries(); this.enable_ui_effects(); return this; }; MembershipsView.prototype.change_entry = function(membership, value) { return membership.set({ role: value }); }; MembershipsView.prototype.remove_entry = function(membership) { return membership.set({ _destroy: true }); }; MembershipsView.prototype.render_entries = function() { var _this = this; return this.model.get('memberships').each(function(membership, index) { return _this._insert_entry(membership, index); }); }; MembershipsView.prototype.enable_ui_effects = function() { return this.$('.entry select').editableField(); }; MembershipsView.prototype._insert_entry = function(membership, index) { var view; view = new Locomotive.Views.Sites.MembershipEntryView({ model: membership, parent_view: this, index: index }); (this._entry_views || (this._entry_views = [])).push(view); return $(this.el).append(view.render().el); }; return MembershipsView; })(Backbone.View); }).call(this); ;TI"dependency_digest;TI"%0f8805d2a0cc570d1fcf4a58fc6d3c96;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/sites/memberships_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/sites/memberships_view.js.coffee;FI" mtime;TI"2013-11-11T00:40:29+01:00;TI" digest;TI"%ed393d19f12c23b29c0aefdefc70c383;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F