aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-01-21 23:36:38 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-01-21 23:36:38 +0000
commit50e2df4268dca1873d9a9c99f35937f417379556 (patch)
tree639661b41ab9e87488b22294048a7ec91d04558b /actionpack/lib/action_view/helpers/url_helper.rb
parent6a2104d792cd55269e787c6746d552c53db9adeb (diff)
downloadrails-50e2df4268dca1873d9a9c99f35937f417379556.tar.gz
rails-50e2df4268dca1873d9a9c99f35937f417379556.tar.bz2
rails-50e2df4268dca1873d9a9c99f35937f417379556.zip
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
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb2
1 files changed, 1 insertions, 1 deletions
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