Sha256: 00dc12b275b8f411b823be6c337dd45f7f3bf3abe84a13d0c73d8f21f2ab78d8

Contents?: true

Size: 293 Bytes

Versions: 82

Compression:

Stored size: 293 Bytes

Contents

$(document).on "submit", "form", ->
  return if this.method.toUpperCase() == "GET"
  return if $(this).find("[name=form_url]").length > 0

  input       = document.createElement("input")
  input.type  = "hidden"
  input.name  = "form_url"
  input.value = location.href
  $(this).append(input)

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
agilibox-1.9.6 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.9.5 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.9.4 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.9.3 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.9.1 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.9.0 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.8.0 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.7.4 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.7.3 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.7.2 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.7.1 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.7.0 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.6.2 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.6.1 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.6.0 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.5.13 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.5.12 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.5.11 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.5.10 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.5.9 app/assets/javascripts/agilibox/form_anchor_referer.coffee