Sha256: 2e41b71c6e4ad9181bfba2adef83d56b1af83470870eec17af1652510b7b1e7e

Contents?: true

Size: 429 Bytes

Versions: 12

Compression:

Stored size: 429 Bytes

Contents

$ ->
  if $('#search_form')[0]
    $('.predicate-select').change ->
      $el = $(this)
      $el.next('input').attr('name', "q[#{$el.val()}]")

    $("#search_form").submit ->
      $("#search_form [id$='_gteq']").val (i, v) ->
        v + " 00:00" if v
      $("#search_form [id$='_lteq']").val (i, v) ->
        v + " 23:59" if v

    $('#search_cancel').click (e) ->
      e.preventDefault()
      window.location.search = ""

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ab_admin-0.3.4 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.3.3 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.3.2 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.3.1 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.3.0 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.2.3 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.2.2 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.2.1 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.2.0 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.1.2 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.1.1 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.1.0 app/assets/javascripts/ab_admin/core/search_form.js.coffee