o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1381401971.48432: @value"Å {I" class:EFI"ProcessedAsset;FI"logical_path;FI"6locomotive/views/shared/fields/belongs_to_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/fields/belongs_to_view.js.coffee;TI"content_type;FI"application/javascript;FI" mtime;FI"2013-10-10T12:39:17+02:00;FI" length;FiÅI" digest;F"%0534e7939051e5de75a8302d766b43b7I" source;FI"Å(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, 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;F"%5a6f4e16abefad97aab09f6cd7f20ff0I"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/fields/belongs_to_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/fields/belongs_to_view.js.coffee;TI" mtime;FI"2013-10-10T12:39:17+02:00;FI" digest;F"%ab645274d4b28ba99e01529c3c9d95ecI" _version;F"%ffd318ca8b794f42f5029101c2cf5d91