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

Version Path
push_type_auth-0.5.3 test/dummy/tmp/cache/assets/test/sprockets/v3.0/xAIPCsbr_SxeIv8K1RTBIis2OscSIOf-io9WN-qZmfA.cache
push_type_admin-0.5.3 test/dummy/tmp/cache/assets/test/sprockets/v3.0/xAIPCsbr_SxeIv8K1RTBIis2OscSIOf-io9WN-qZmfA.cache
push_type_auth-0.5.2 test/dummy/tmp/cache/assets/test/sprockets/v3.0/xAIPCsbr_SxeIv8K1RTBIis2OscSIOf-io9WN-qZmfA.cache
push_type_admin-0.5.2 test/dummy/tmp/cache/assets/test/sprockets/v3.0/xAIPCsbr_SxeIv8K1RTBIis2OscSIOf-io9WN-qZmfA.cache
push_type_auth-0.5.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/xAIPCsbr_SxeIv8K1RTBIis2OscSIOf-io9WN-qZmfA.cache
push_type_admin-0.5.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/xAIPCsbr_SxeIv8K1RTBIis2OscSIOf-io9WN-qZmfA.cache
push_type_auth-0.5.0 test/dummy/tmp/cache/assets/test/sprockets/v3.0/xAIPCsbr_SxeIv8K1RTBIis2OscSIOf-io9WN-qZmfA.cache
push_type_admin-0.5.0 test/dummy/tmp/cache/assets/test/sprockets/v3.0/xAIPCsbr_SxeIv8K1RTBIis2OscSIOf-io9WN-qZmfA.cache
push_type_auth-0.5.0.alpha.5 test/dummy/tmp/cache/assets/test/sprockets/v3.0/l0afJ-XBWm_xyMceHlqZ9FR2IsleDg1kr54zs1ua8mA.cache
push_type_admin-0.5.0.alpha.5 test/dummy/tmp/cache/assets/test/sprockets/v3.0/l0afJ-XBWm_xyMceHlqZ9FR2IsleDg1kr54zs1ua8mA.cache
push_type_auth-0.5.0.alpha.4 test/dummy/tmp/cache/assets/test/sprockets/v3.0/l0afJ-XBWm_xyMceHlqZ9FR2IsleDg1kr54zs1ua8mA.cache
push_type_admin-0.5.0.alpha.4 test/dummy/tmp/cache/assets/test/sprockets/v3.0/l0afJ-XBWm_xyMceHlqZ9FR2IsleDg1kr54zs1ua8mA.cache
push_type_auth-0.5.0.alpha.3 test/dummy/tmp/cache/assets/test/sprockets/v3.0/l0afJ-XBWm_xyMceHlqZ9FR2IsleDg1kr54zs1ua8mA.cache
push_type_admin-0.5.0.alpha.3 test/dummy/tmp/cache/assets/test/sprockets/v3.0/l0afJ-XBWm_xyMceHlqZ9FR2IsleDg1kr54zs1ua8mA.cache