$("#comment_<%= @comment.id.to_s %>_body_div").html("<%= escape_javascript( render :partial => 'body', :locals => {:comment => @comment}) %>"); $("#comment_<%= @comment.id.to_s %>_timestamp_span").html("<%= escape_javascript( @comment.timestamp + (@comment.is_modified? ? " by #{commontator_name(comment.editor)}" : '')) %>"); $("#comment_<%= @comment.id.to_s %>_actions_span").html("<%= escape_javascript( render :partial => 'actions', :locals => {:comment => @comment, :user => @user}) %>"); $("#comment_<%= @comment.id %>_votes_span").html("<%= escape_javascript( render :partial => 'votes', :locals => {:comment => @comment, :user => @user}) %>"); <%= javascript_proc %>