Sha256: a780458d871279fb014b6b27ce2850bb2d9e6aecb689b5ed41fa35f50f86a1ff
Contents?: true
Size: 916 Bytes
Versions: 14
Compression:
Stored size: 916 Bytes
Contents
I"ˆ(function() { $(document).on('ready page:load', function() { return $('select', '.taxonomy, .node').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 "<div class=\"option\">" + pre + (esc(item.text)) + "</div>"; } } }); }); }).call(this); :ET
Version data entries
14 entries across 14 versions & 2 rubygems