From 32e0138b0ba9acb7405c915f600c789a8c61f44c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 21 Mar 2005 14:44:33 +0000 Subject: 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 --- actionpack/lib/action_view/helpers/javascripts/prototype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack') 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) { } -- cgit v1.2.3