{:uriI"file:///Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts/push_type/fields/relation_fields.js.coffee?type=application/javascript&pipeline=self&id=03a867c23cd8ef3c02682730c7431bfef03b3fe721433893f24e4d058b2c1bd1:ET:load_pathI"E/Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts;T: filenameI"p/Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts/push_type/fields/relation_fields.js.coffee;T: nameI"%push_type/fields/relation_fields;T:logical_pathI"-push_type/fields/relation_fields.self.js;T:content_typeI"application/javascript;T:sourceI"(function() { $(document).on('ready page:load', function() { return $('select', '.relation, .node, .taxonomy').selectize({ plugins: ['remove_button'], hideSelected: false, onInitialize: function() { var items, options, sel; sel = this; options = sel.$input.data('options'); items = sel.$input.data('items'); $.each(options, function() { return sel.addOption(this); }); if ($.isArray(items)) { return $.each(items, function() { return sel.addItem(this); }); } else { return sel.addItem(items); } }, render: { option: function(item, esc) { var pre; pre = item.depth > 0 ? '- '.repeat(item.depth) : ''; return "