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.3.0 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.2.3 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.2.2 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.2.1 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.2.0 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.1.0 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.15 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.14 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.13 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.12 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.11 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.10 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.9 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.8 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.7 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.6 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.5 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.4 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.3 app/assets/javascripts/agilibox/form_anchor_referer.coffee
agilibox-1.0.2 app/assets/javascripts/agilibox/form_anchor_referer.coffee