o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1383239456.657522: @value"L {I" class:ETI"ProcessedAsset;FI"logical_path;TI"6locomotive/views/shared/fields/belongs_to_view.js;FI" pathname;TI"¦/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/assets/javascripts/locomotive/views/shared/fields/belongs_to_view.js.coffee;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-10-31T17:26:43+01:00;TI" length;TiùI" digest;TI"%7c67c871f8e3e125003977c399aa588d;FI" source;TI"ù(function() { var _base, _base1, _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 = {}); (_base1 = Locomotive.Views.Shared).Fields || (_base1.Fields = {}); Locomotive.Views.Shared.Fields.BelongsToView = (function(_super) { __extends(BelongsToView, _super); function BelongsToView() { _ref = BelongsToView.__super__.constructor.apply(this, arguments); return _ref; } BelongsToView.prototype.render = function() { this.enable_select2(); return this; }; BelongsToView.prototype.enable_select2 = function() { var options, _this = this; options = $(this.el).data(); $(this.el).select2({ width: '50%', minimumInputLength: 1, quietMillis: 100, allowClear: true, placeholder: ' ', ajax: { url: options.url, data: function(term, page) { return { q: term, page: page }; }, results: function(data, page) { return { results: data.map(function(item) { return { id: item._id, text: item._label || '' }; }), more: data.length === options.perPage }; } }, initSelection: function(el, callback) { return callback({ id: el.val(), text: options.value }); } }); return $(this.el).on('select2-selecting', function(el) { return _this.model.set("" + _this.options.name + "_id", el.val); }); }; return BelongsToView; })(Backbone.View); }).call(this); ;TI"dependency_digest;TI"%5f3e6fd2f7e502060cfe2133c361bec4;FI"required_paths;T[I"¦/Users/didier/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/locomotive_cms-2.3.0/app/assets/javascripts/locomotive/views/shared/fields/belongs_to_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.0/app/assets/javascripts/locomotive/views/shared/fields/belongs_to_view.js.coffee;FI" mtime;TI"2013-10-31T17:26:43+01:00;TI" digest;TI"%f3c3c133aa63b089301555f7c9c197fc;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F