Browse files

allow explicit url definition in Form#request

  • Loading branch information...
1 parent 3fad4f4 commit 7d95257ebfe0a1acd3dcb87514165b53d9739e77 @juzna committed Jan 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/prototype/dom/form.js
View
2 src/prototype/dom/form.js
@@ -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);

0 comments on commit 7d95257

Please sign in to comment.