Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow explicit url definition in Form#request

  • Loading branch information...
commit 7d95257ebfe0a1acd3dcb87514165b53d9739e77 1 parent 3fad4f4
Jan Dolecek authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/prototype/dom/form.js
2  src/prototype/dom/form.js
View
@@ -404,7 +404,7 @@ Form.Methods = {
request: function(form, options) {
form = $(form), options = Object.clone(options || { });
- var params = options.parameters, action = form.readAttribute('action') || '';
+ var params = options.parameters, action = options.url || form.readAttribute('action') || '';
if (action.blank()) action = window.location.href;
options.parameters = form.serialize(true);
Please sign in to comment.
Something went wrong with that request. Please try again.