Sha256: 1ccc405653eb3b648619e7fbfdde00f2fd4780c1f72023a534dce0a0add3d34e

Contents?: true

Size: 836 Bytes

Versions: 1

Compression:

Stored size: 836 Bytes

Contents

$ ->
  $("[data-behavior='batch-tools']").removeClass('hidden')     

  $("[data-behavior='batch-add-button']").bl_checkbox_submit({
          checked_label: "Selected",
          unchecked_label: "Select",
          css_class: "batch_toggle"
      })

  $("[data-behavior='batch-edit-activate']").click (e) ->
    e.preventDefault()
    if $(this).attr("data-state") == 'off'
      $(this).attr("data-state", 'on')
      $(this).find('a i').addClass('icon-ok')
      $("[data-behavior='batch-edit']").removeClass('hidden')
      $("[data-behavior='batch-add-button']").removeClass('hidden')
    else
      $(this).attr("data-state", 'off')
      $(this).find('a i').removeClass('icon-ok')
      $("[data-behavior='batch-edit']").addClass('hidden')
      $("[data-behavior='batch-add-button']").addClass('hidden')
    # TODO check-all

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hydra-batch-edit-0.0.1 vendor/assets/javascripts/batch_edit.js.coffee