aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorSam Stephenson <sam@37signals.com>2005-11-18 18:03:45 +0000
committerSam Stephenson <sam@37signals.com>2005-11-18 18:03:45 +0000
commitb3c65bc8490b072a0d314aa3858c680fc6d67e35 (patch)
tree36b59c189aa643b3863a4d5dc6a3ee880b1a53a9 /actionpack/lib
parent62fe5bbfb1493bd069a1ebcb5ee45531e49a6582 (diff)
downloadrails-b3c65bc8490b072a0d314aa3858c680fc6d67e35.tar.gz
rails-b3c65bc8490b072a0d314aa3858c680fc6d67e35.tar.bz2
rails-b3c65bc8490b072a0d314aa3858c680fc6d67e35.zip
Use Element.update('id', 'html') instead of uid=501(sam) gid=501(sam) groups=501(sam), 81(appserveradm), 79(appserverusr), 80(admin).innerHTML = 'html' in JavaScriptGenerator#replace_html so that script tags are evaluated
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3086 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/prototype_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb
index 74c32c7441..1ba607a90f 100644
--- a/actionpack/lib/action_view/helpers/prototype_helper.rb
+++ b/actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -425,7 +425,7 @@ module ActionView
#
def replace_html(id, *options_for_render)
html = render(*options_for_render)
- record "$(#{id.inspect}).innerHTML = #{html.inspect}"
+ record "Element.update(#{id.inspect}, #{html.inspect})"
end
# Removes the DOM elements with the given +ids+ from the page.