Sha256: 06b451a0f4ab0f4d00371f4ac49703d23cb37a8bafdeea5e39f04dbb0a7634ee

Contents?: true

Size: 437 Bytes

Versions: 16

Compression:

Stored size: 437 Bytes

Contents

$(window).ready ->

  # TODO: generalize so this works with item views other than bar
  $("body").on "click", "._selectable-filtered-content .bar-body", (e) ->
    item = $(this)
    name = item.slot().data("card-name")
    container = item.closest("._selectable-filtered-content")
    input = $(container.data("input-selector"))
    input.val name
    item.closest('.modal').modal('hide')
    e.preventDefault()
    e.stopPropagation()

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
card-mod-script-0.14.2 assets/script/decko/selectable_filtered_content.js.coffee
card-mod-script-0.14.1 assets/script/decko/selectable_filtered_content.js.coffee
card-mod-script-0.14.0 assets/script/decko/selectable_filtered_content.js.coffee
card-mod-script-0.13.4 assets/script/decko/selectable_filtered_content.js.coffee
card-mod-script-0.13.3 assets/script/decko/selectable_filtered_content.js.coffee
card-mod-script-0.13.2 assets/script/decko/selectable_filtered_content.js.coffee
card-mod-script-0.11.7 lib/javascript/decko/selectable_filtered_content.js.coffee
card-mod-script-0.12.0 lib/javascript/decko/selectable_filtered_content.js.coffee
card-mod-script-0.11.6 lib/javascript/decko/selectable_filtered_content.js.coffee
card-mod-script-0.11.5 lib/javascript/decko/selectable_filtered_content.js.coffee
card-mod-script-0.11.4 lib/javascript/decko/selectable_filtered_content.js.coffee
card-mod-script-0.11.3 lib/javascript/decko/selectable_filtered_content.js.coffee
card-mod-script-0.11.2 lib/javascript/decko/selectable_filtered_content.js.coffee
card-mod-script-0.11.1 lib/javascript/decko/selectable_filtered_content.js.coffee
card-mod-script-0.11.0 lib/javascript/decko/selectable_filtered_content.js.coffee
card-1.100.0 mod/machines/lib/javascript/decko/selectable_filtered_content.js.coffee