Skip to content
This repository has been archived by the owner on Oct 11, 2019. It is now read-only.

Commit

Permalink
Fixed problem with form actions that contain query string params
Browse files Browse the repository at this point in the history
  • Loading branch information
aduraj committed Nov 27, 2013
1 parent 4261412 commit 23e2311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/assets/javascripts/_form.js.coffee
Expand Up @@ -66,9 +66,9 @@ class Form
else
@$form.serialize()

url = @$form.attr("action")
url = @$form.attr("action").replace(/\?.*$/, '')
url += "?#{serialized}" if serialized.length > 0
url

window._Wiselinks ?= {}
window._Wiselinks.Form = Form
window._Wiselinks.Form = Form

0 comments on commit 23e2311

Please sign in to comment.