Sha256: cf3e7e4266d6e439d55ffb54e8bc8f6efa03342a7ab1501a1a4fe9e61c8be111

Contents?: true

Size: 524 Bytes

Versions: 13

Compression:

Stored size: 524 Bytes

Contents

$.fn.select2.defaults.set("theme", "bootstrap")

decko.slotReady (slot) ->
  slot.find('select:not(._no-select2)').each (i) ->
    opts = { dropdownAutoWidth: "true", containerCssClass: ":all:", width: "auto" }
    if $(this).hasClass("tags")
      opts.tags = "true"
    $(this).select2(opts)

  # TODO: move to better place
  $('.colorpicker-component').colorpicker()





#  slot.find('.pointer-multiselect').each (i) ->
#    load_select2($(this))
#
#  slot.find('.pointer-select').each (i) ->
#    load_select2($(this))

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
card-1.96.8 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.96.7 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.96.6 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.96.5 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.96.4 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.96.3 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.96.2 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.96.1 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.96.0 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.95.3 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.95.2 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.95.1 mod/bootstrap/lib/javascript/script_load_select2.js.coffee
card-1.95.0 mod/bootstrap/lib/javascript/script_load_select2.js.coffee