diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-21 14:44:33 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-21 14:44:33 +0000 |
commit | 32e0138b0ba9acb7405c915f600c789a8c61f44c (patch) | |
tree | 69c1289ef0cf02a989b76cfff89c71dc9be2d055 /actionpack | |
parent | 34a9ed5e85bad51b85ba1553221fbe7e8af6efc4 (diff) | |
download | rails-32e0138b0ba9acb7405c915f600c789a8c61f44c.tar.gz rails-32e0138b0ba9acb7405c915f600c789a8c61f44c.tar.bz2 rails-32e0138b0ba9acb7405c915f600c789a8c61f44c.zip |
Made the Ajax request itself also use the &_= trick for Safari
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascripts/prototype.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js index d71e878876..9790d3b689 100644 --- a/actionpack/lib/action_view/helpers/javascripts/prototype.js +++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js @@ -154,7 +154,7 @@ Ajax.Request.prototype = (new Ajax.Base()).extend({ 'application/x-www-form-urlencoded'); } - this.transport.send(this.options.parameters); + this.transport.send(this.options.method == 'post' ? this.options.parameters + '&_=' : null); } catch (e) { } |