Sha256: bbb01f281c4de027aabcc44894cec1c55032f0c971712d44bbda4dc2067ee5a3

Contents?: true

Size: 446 Bytes

Versions: 9

Compression:

Stored size: 446 Bytes

Contents

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

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

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ab_admin-0.8.3 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.8.2 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.8.1 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.8.0 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.7.0 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.6.1 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.6.0 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.5.0 app/assets/javascripts/ab_admin/core/search_form.js.coffee
ab_admin-0.4.0 app/assets/javascripts/ab_admin/core/search_form.js.coffee