Permalink
Browse files

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
  • Loading branch information...
1 parent 34a9ed5 commit 32e0138b0ba9acb7405c915f600c789a8c61f44c @dhh dhh committed Mar 21, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 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) {
}

0 comments on commit 32e0138

Please sign in to comment.