Sha256: e13d267a1378b36c1dfea962f3d76a94844e8ae12faf58033bb3aee38ab9886c
Contents?: true
Size: 488 Bytes
Versions: 6
Compression:
Stored size: 488 Bytes
Contents
window.Binco.Select2 = load: (selector) -> selector = if typeof selector == 'string' then selector else '.select2-rails' $(selector).select2( theme: "bootstrap" ) destroy: (selector) -> selector = if typeof selector == 'string' then selector else '.select2-rails' $(selector).each((i,e) -> $(e).select2('destroy') ) $(document).on 'turbolinks:load', window.Binco.Select2.load $(document).on 'turbolinks:before-cache', window.Binco.Select2.destroy
Version data entries
6 entries across 6 versions & 1 rubygems