{: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 "
" + pre + (esc(item.text)) + "
"; } } }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"~file-digest:///Users/aaron/dev/pushcode/push_type/admin/app/assets/javascripts/push_type/fields/relation_fields.js.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%D˜L =ץ-*S.O: lengthi:dependencies_digest"%]ˈp$ao&}6<ėfy-I;:idI"E03a867c23cd8ef3c02682730c7431bfef03b3fe721433893f24e4d058b2c1bd1;F: mtimel+OsV