Sha256: 5696ed38dfc27cf26b2d33f0f351da3162a2fdd8f0886664a3bd5d7a86d0cc2d

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

$ ->
  $("button.reset").click ->
    form = $(this).parents("form")

    form.find("option").map ->
      this.selected = true if this.value == ""

    form.find("input").map ->
      this.value = "" unless this.type.match(/submit|hidden|button/)

    form.find("textarea").val("")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dorsale-1.1.4 app/assets/javascripts/dorsale/forms.coffee