Permalink
Browse files

Fix IE bug with link_to "something", :post => true (closes #3443) [Ju…

…stin Palmer]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Jan 21, 2006
1 parent 6a2104d commit 50e2df4268dca1873d9a9c99f35937f417379556
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_view/helpers/url_helper.rb
View
@@ -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]
@@ -269,7 +269,7 @@ def popup_javascript_function(popup)
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

0 comments on commit 50e2df4

Please sign in to comment.