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
上级 6a2104d7
*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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册