Sha256: b21a3a314a9d6db053018747f76a1d65c4a57ddef6704b1a2b07116f08249d52

Contents?: true

Size: 366 Bytes

Versions: 46

Compression:

Stored size: 366 Bytes

Contents

timerid = undefined

$ ->
  $('[data-auto-submit=true]').keyup ->
    form = this
    clearTimeout timerid
    timerid = setTimeout((->
      form.submit()
      return
    ), 1000)
    return

$ ->
  $('[data-auto-submit=true]').change ->
    form = this
    clearTimeout timerid
    timerid = setTimeout((->
      form.submit()
      return
    ), 1000)
    return

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
itsf_backend-1.1.4 app/assets/javascripts/itsf/backend/application/auto-submit.coffee
itsf_backend-1.1.3 app/assets/javascripts/itsf/backend/application/auto-submit.coffee
itsf_backend-1.1.2 app/assets/javascripts/itsf/backend/application/auto-submit.coffee
itsf_backend-1.1.1 app/assets/javascripts/itsf/backend/application/auto-submit.coffee
itsf_backend-1.1.0 app/assets/javascripts/itsf/backend/application/auto-submit.coffee
itsf_backend-1.0.1 app/assets/javascripts/itsf/backend/application/auto-submit.coffee