Sha256: db5126f30292f5755489fba664e13a9a979083d49fd7e6ad32e7d5949187ea6f

Contents?: true

Size: 293 Bytes

Versions: 2

Compression:

Stored size: 293 Bytes

Contents

Trestle.ready(function() {
  $('select[data-enable-select2]').each(function() {
    $(this).select2({
      theme: 'bootstrap',
      containerCssClass: ':all:',
      dropdownCssClass: function(el) {
        return el[0].className.replace(/\s*form-control\s*/, '');
      }
    });
  });
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trestle-0.8.5 app/assets/javascripts/trestle/_select.js
trestle-0.8.4 app/assets/javascripts/trestle/_select.js