Sha256: fbcd62516e3775196a07cd0443388cd5a2c8ad51b75243146b3c00605156a1d5

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

jQuery ->
  $('.hasclear').keyup ->
    t = $(this)
    t.next('span').toggle Boolean(t.val())
    return
  $('.clearer').hide $(this).prev('input').val()
  $('.clearer').click ->
    $(this).prev('input').val('').focus()
    $(this).hide()
    $(this).parents('form:first').submit()
    return
  $('.hasclear').next('span').toggle Boolean($('.hasclear').val())
  $('.hasclear').focus()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doc_log-0.0.3 app/assets/javascripts/doc_log/raw_log.js.coffee
doc_log-0.0.2 app/assets/javascripts/doc_log/raw_log.js.coffee