Created
February 11, 2010 20:46
-
-
Save overture8/301934 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('comments').insert( { bottom: "<%= escape_javascript(render @comment) %>" } ); // Insert the _comment partial at the bottom of the comments list | |
$$('.comment').last().highlight(); // Highlight the last comment (the one you just inserted!) | |
$('comment_body').clear(); // Clear the form text area |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment