Sha256: 7f43e6db5b5b67a432552fa765ed3453672c8c8e9df9c97e1a3dcc69794e3e5e
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
window.Binco.Select2 = load: (selector) -> selector = if typeof selector == 'string' then selector else '.select2-rails' $(selector).select2( theme: "bootstrap" tags: $(@).data('tags') ) 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
4 entries across 4 versions & 1 rubygems