From 50e2df4268dca1873d9a9c99f35937f417379556 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 21 Jan 2006 23:36:38 +0000 Subject: Fix IE bug with link_to "something", :post => true (closes #3443) [Justin Palmer] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/CHANGELOG | 2 ++ actionpack/lib/action_view/helpers/url_helper.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index a32c92d22f..820990a69e 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fix IE bug with link_to "something", :post => true #3443 [Justin Palmer] + * Extract Test::Unit::TestCase test process behavior into an ActionController::TestProcess module. [Sam Stephenson] * Pass along blocks from render_to_string to render. [Sam Stephenson] diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 48e5af3491..3f95b7a4bb 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -269,7 +269,7 @@ module ActionView end def post_javascript_function - "f = document.createElement('form'); document.body.appendChild(f); f.method = 'POST'; f.action = this.href; f.submit();" + "var f = document.createElement('form'); document.body.appendChild(f); f.method = 'POST'; f.action = this.href; f.submit();" end # Processes the _html_options_ hash, converting the boolean -- cgit v1.2.3